mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: remove checks for whether RBAC is disabled (#73812)
* remove checks for whether access control is disabled, as it is always enabled now * linting
This commit is contained in:
@@ -560,7 +560,7 @@ func (ss *sqlStore) SearchOrgUsers(ctx context.Context, query *org.SearchOrgUser
|
||||
ss.log.Warn("Query user not set for filtering.")
|
||||
}
|
||||
|
||||
if !query.DontEnforceAccessControl && !accesscontrol.IsDisabled(ss.cfg) {
|
||||
if !query.DontEnforceAccessControl {
|
||||
acFilter, err := accesscontrol.Filter(query.User, "org_user.user_id", "users:id:", accesscontrol.ActionOrgUsersRead)
|
||||
if err != nil {
|
||||
return err
|
||||
|
Reference in New Issue
Block a user