mirror of
https://github.com/grafana/grafana.git
synced 2025-08-03 00:59:31 +08:00
RBAC: Check forceLogin inside CanAdminPlugins (#93449)
This commit is contained in:
@ -98,6 +98,10 @@ func CanAdminPlugins(cfg *setting.Cfg, accessControl ac.AccessControl) func(c *c
|
||||
accessForbidden(c)
|
||||
return
|
||||
}
|
||||
if c.AllowAnonymous && !c.IsSignedIn && shouldForceLogin(c) {
|
||||
notAuthorized(c)
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user