Merge pull request #2873 from RayeEvtuch/website-transfer-permissions

Allow Team Managers to transfer websites to teams
This commit is contained in:
Mike Cao 2024-08-05 10:30:04 -07:00 committed by GitHub
commit 36663bd52d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 8 additions and 3 deletions

View file

@ -151,6 +151,8 @@ export const PERMISSIONS = {
websiteCreate: 'website:create',
websiteUpdate: 'website:update',
websiteDelete: 'website:delete',
websiteTransferToTeam: 'website:transfer-to-team',
websiteTransferToUser: 'website:transfer-to-user',
teamCreate: 'team:create',
teamUpdate: 'team:update',
teamDelete: 'team:delete',
@ -171,12 +173,15 @@ export const ROLE_PERMISSIONS = {
PERMISSIONS.websiteCreate,
PERMISSIONS.websiteUpdate,
PERMISSIONS.websiteDelete,
PERMISSIONS.websiteTransferToTeam,
PERMISSIONS.websiteTransferToUser,
],
[ROLES.teamManager]: [
PERMISSIONS.teamUpdate,
PERMISSIONS.websiteCreate,
PERMISSIONS.websiteUpdate,
PERMISSIONS.websiteDelete,
PERMISSIONS.websiteTransferToTeam,
],
[ROLES.teamMember]: [
PERMISSIONS.websiteCreate,