Access control: Add access control based permissions to admins/users (#32409)

Co-authored-by: Emil Tullstedt <emil.tullstedt@grafana.com>
This commit is contained in:
Vardan Torosyan
2021-04-14 16:31:27 +02:00
committed by GitHub
co-authored by Emil Tullstedt
parent cdb4785496
commit 9f82eac833
10 changed files with 230 additions and 81 deletions
@@ -20,7 +20,6 @@ func Evaluate(ctx context.Context, ac accesscontrol.AccessControl, user *models.
if !ok {
return false, nil
}
for _, s := range scope {
var match bool
for dbScope := range dbScopes {