Skip to content

Commit

Permalink
Merge pull request #386 from internxt/fix/change-manager-permissions
Browse files Browse the repository at this point in the history
fix: manager and owners are able to change the manager of a team
  • Loading branch information
apsantiso authored Aug 8, 2024
2 parents 88d397a + 12febcd commit edbd286
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/workspaces/workspaces.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ export class WorkspacesController {
description: 'Team manager changed',
})
@UseGuards(WorkspaceGuard)
@WorkspaceRequiredAccess(AccessContext.WORKSPACE, WorkspaceRole.OWNER)
@WorkspaceRequiredAccess(AccessContext.TEAM, WorkspaceRole.MANAGER)
async changeTeamManager(
@Param('teamId', ValidateUUIDPipe) teamId: WorkspaceTeamAttributes['id'],
@Body('managerId', ValidateUUIDPipe) managerId: UserAttributes['uuid'],
Expand Down

0 comments on commit edbd286

Please sign in to comment.