This commit is contained in:
@@ -215,6 +215,17 @@ export class UsersController {
|
||||
return this.userService.adminUpdateUser(userId, restId, dto);
|
||||
}
|
||||
|
||||
@UseGuards(AdminAuthGuard)
|
||||
@ApiBearerAuth()
|
||||
@Permissions(Permission.MANAGE_USERS)
|
||||
@ApiHeader(API_HEADER_SLUG)
|
||||
@ApiOperation({ summary: 'Get user groups for a customer (admin)' })
|
||||
@ApiParam({ name: 'userId', description: 'User ID' })
|
||||
@Get('admin/users/:userId/groups')
|
||||
async adminGetUserGroups(@Param('userId') userId: string, @RestId() restId: string) {
|
||||
return this.userService.getUserGroups(userId, restId);
|
||||
}
|
||||
|
||||
@UseGuards(AdminAuthGuard)
|
||||
@ApiBearerAuth()
|
||||
@Permissions(Permission.MANAGE_USERS)
|
||||
|
||||
Reference in New Issue
Block a user