Browse Source

Nc fix: Allow base invite for all user roles (#9368)

* fix: allow base user invite for all users but restrict with roles lower than or equal

* refactor: improved permission error

* fix: base invite bug

* refactor: permission error message
pull/9373/head
Pranav C 3 months ago committed by GitHub
parent
commit
68a318398a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 6
      packages/nocodb/src/utils/acl.ts

6
packages/nocodb/src/utils/acl.ts

@ -161,6 +161,8 @@ const permissionScopes = {
// Webhooks
'hookTrigger',
'userInvite',
],
};
@ -232,7 +234,7 @@ const rolePermissions:
commentsCount: true,
auditListRow: true,
// userInvite: true,
userInvite: true,
},
},
[ProjectRoles.COMMENTER]: {
@ -703,5 +705,5 @@ export function generateReadablePermissionErr(
permissionDescriptions[permissionName] ||
`perform the action "${permissionName}"`;
return `You do not have permission to ${permissionDescription} with the roles: ${roleLabels}. Please contact support if you need further assistance.`;
return `You do not have permission to ${permissionDescription} with the roles: ${roleLabels}.`;
}

Loading…
Cancel
Save