Allow team managers to transfer websites to teams

This commit is contained in:
Raye Evtuch 2024-08-04 20:00:45 -05:00
parent b006747a45
commit 0988808b75
No known key found for this signature in database
GPG key ID: 77718E52A66F54B5
3 changed files with 8 additions and 3 deletions

View file

@ -160,6 +160,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',
@ -180,12 +182,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,