diff --git a/packages/editor-ui/src/permissions.ts b/packages/editor-ui/src/permissions.ts index 995e9ad6f0769..e044078a0d438 100644 --- a/packages/editor-ui/src/permissions.ts +++ b/packages/editor-ui/src/permissions.ts @@ -84,7 +84,7 @@ export const getCredentialPermissions = (user: IUser | null, credential: ICreden { name: 'updateConnection', test: [UserRole.ResourceOwner] }, { name: 'updateSharing', - test: (permissions) => rbacStore.hasScope('credential:share') || !!permissions.isOwner, + test: (permissions) => !!permissions.isOwner, }, { name: 'updateNodeAccess', test: [UserRole.ResourceOwner] }, { name: 'delete', test: [UserRole.ResourceOwner, UserRole.InstanceOwner] }, @@ -109,7 +109,7 @@ export const getWorkflowPermissions = (user: IUser | null, workflow: IWorkflowDb }, { name: 'updateSharing', - test: (permissions) => rbacStore.hasScope('workflow:share') || !!permissions.isOwner, + test: (permissions) => !!permissions.isOwner, }, { name: 'delete',