Add settings permissions check on FE (#11425)

## Context
Now that we can update role settings permissions, we need to reflect
that on the FE as well (hiding/showing nav items + redirection logic).
Feature flag check here is not really needed because since not having
any setting permission will result in the same behavior as Permission
V1.
This PR updates the resolvers to return settings permissions of the
current user
This commit is contained in:
Weiko
2025-04-07 17:15:33 +02:00
committed by GitHub
parent d4db399933
commit f403c551d7
8 changed files with 51 additions and 18 deletions

View File

@ -190,7 +190,7 @@ export abstract class GraphqlQueryBaseResolverService<
const userHasPermission =
await this.permissionsService.userHasWorkspaceSettingPermission({
userWorkspaceId: authContext.userWorkspaceId,
_setting: permissionRequired,
setting: permissionRequired,
workspaceId: authContext.workspace.id,
isExecutedByApiKey: isDefined(authContext.apiKey),
});