feat: Allow instance owners and admins to edit all credentials (#8716)
Co-authored-by: Danny Martini <despair.blue@gmail.com>
This commit is contained in:
@@ -89,7 +89,8 @@ export const getCredentialPermissions = (user: IUser | null, credential: ICreden
|
||||
},
|
||||
{
|
||||
name: 'update',
|
||||
test: (permissions) => !!permissions.isOwner,
|
||||
test: (permissions) =>
|
||||
hasPermission(['rbac'], { rbac: { scope: 'credential:update' } }) || !!permissions.isOwner,
|
||||
},
|
||||
{
|
||||
name: 'share',
|
||||
|
||||
Reference in New Issue
Block a user