Authorization: Add group to role DisplayName to make filtered list more clear (#102950)
* add group to role DisplayName to make searching easier * clean up more role names; add filtered display text when fetching * pass filter state into role menu to decide how to display role name * prop name better describes what it does
This commit is contained in:
@@ -60,7 +60,7 @@ func DeclareRBACRoles(service ac.Service, cfg *setting.Cfg, features featuremgmt
|
||||
PluginsWriter := ac.RoleRegistration{
|
||||
Role: ac.RoleDTO{
|
||||
Name: ac.FixedRolePrefix + "plugins:writer",
|
||||
DisplayName: "Plugin Writer",
|
||||
DisplayName: "Writer",
|
||||
Description: "Enable and disable plugins and edit plugins' settings",
|
||||
Group: "Plugins",
|
||||
Permissions: []ac.Permission{
|
||||
@@ -72,7 +72,7 @@ func DeclareRBACRoles(service ac.Service, cfg *setting.Cfg, features featuremgmt
|
||||
PluginsMaintainer := ac.RoleRegistration{
|
||||
Role: ac.RoleDTO{
|
||||
Name: ac.FixedRolePrefix + "plugins:maintainer",
|
||||
DisplayName: "Plugin Maintainer",
|
||||
DisplayName: "Maintainer",
|
||||
Description: "Install, uninstall plugins. Needs to be assigned globally.",
|
||||
Group: "Plugins",
|
||||
Permissions: []ac.Permission{
|
||||
|
||||
Reference in New Issue
Block a user