fix(editor): Add back credential use permission (#8023)
## Summary A shared credential is not selectable in NDV Aim If a credential is shared with a user they should be able to select it in node details view
This commit is contained in:
@@ -101,6 +101,10 @@ export const getCredentialPermissions = (user: IUser | null, credential: ICreden
|
||||
test: (permissions) =>
|
||||
hasPermission(['rbac'], { rbac: { scope: 'credential:delete' } }) || !!permissions.isOwner,
|
||||
},
|
||||
{
|
||||
name: 'use',
|
||||
test: (permissions) => !!permissions.isOwner || !!permissions.isSharee,
|
||||
},
|
||||
];
|
||||
|
||||
return parsePermissionsTable(user, table);
|
||||
|
||||
Reference in New Issue
Block a user