mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
add the permission to read org users to team creator (#45224)
This commit is contained in:
@@ -215,11 +215,12 @@ func (hs *HTTPServer) declareFixedRoles() error {
|
|||||||
Role: accesscontrol.RoleDTO{
|
Role: accesscontrol.RoleDTO{
|
||||||
Name: "fixed:teams:creator",
|
Name: "fixed:teams:creator",
|
||||||
DisplayName: "Team creator",
|
DisplayName: "Team creator",
|
||||||
Description: "Create teams.",
|
Description: "Create teams and read organisation users (required to manage the created teams).",
|
||||||
Group: "Teams",
|
Group: "Teams",
|
||||||
Version: 1,
|
Version: 2,
|
||||||
Permissions: []accesscontrol.Permission{
|
Permissions: []accesscontrol.Permission{
|
||||||
{Action: accesscontrol.ActionTeamsCreate},
|
{Action: accesscontrol.ActionTeamsCreate},
|
||||||
|
{Action: accesscontrol.ActionOrgUsersRead, Scope: accesscontrol.ScopeUsersAll},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Grants: teamCreatorGrants,
|
Grants: teamCreatorGrants,
|
||||||
|
|||||||
Reference in New Issue
Block a user