feat: Add user role select to users list settings page (#7796)

![CleanShot 2023-11-27 at 07 20
58](https://github.com/n8n-io/n8n/assets/5410822/40be0505-32ee-48a7-923e-ba6b4dbce670)
This commit is contained in:
Csaba Tuncsik
2023-11-27 13:38:03 +01:00
committed by GitHub
parent 5acb7b94c0
commit 137e23853f
9 changed files with 74 additions and 17 deletions

View File

@@ -476,9 +476,11 @@ export const routes = [
settingsView: SettingsUsersView,
},
meta: {
middleware: ['authenticated', 'role'],
middleware: ['authenticated', 'rbac'],
middlewareOptions: {
role: [ROLE.Owner],
rbac: {
scope: ['user:create', 'user:update'],
},
},
telemetry: {
pageCategory: 'settings',