Skip to content

Commit

Permalink
fix: add admin role to the array (#635)
Browse files Browse the repository at this point in the history
Co-authored-by: orig <[email protected]>
  • Loading branch information
origranot and orig authored Dec 24, 2023
1 parent daa9f45 commit 78a8bad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/backend/src/core/users/users.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export class UsersController {
}

@Patch('update')
@Roles(Role.USER)
@Roles(Role.ADMIN, Role.USER)
async update(@UserCtx() user: UserContext, @Body() { displayName, profilePicture }: UpdateDto) {
// Update the user's name if 'displayName' is provided
if (displayName) {
Expand Down

0 comments on commit 78a8bad

Please sign in to comment.