mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
feat(core): Add scopes to API Keys (#14176)
Co-authored-by: Charlie Kolb <charlie@n8n.io> Co-authored-by: Danny Martini <danny@n8n.io>
This commit is contained in:
@@ -293,7 +293,7 @@ export class UsersController {
|
||||
throw new ForbiddenError(NO_OWNER_ON_OWNER);
|
||||
}
|
||||
|
||||
await this.userService.update(targetUser.id, { role: payload.newRoleName });
|
||||
await this.userService.changeUserRole(req.user, targetUser, payload);
|
||||
|
||||
this.eventService.emit('user-changed-role', {
|
||||
userId: req.user.id,
|
||||
|
||||
Reference in New Issue
Block a user