[v11.2.x] RBAC: Always store action sets (#92855)
RBAC: Always store action sets (#92833)
always store action sets, even if FT is disabled
(cherry picked from commit 46e81e98cf)
Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>
This commit is contained in:
co-authored by
Ieva
parent
aab97696db
commit
fc2d84152d
@@ -710,7 +710,7 @@ func (s *store) createPermissions(sess *db.Session, roleID int64, cmd SetResourc
|
||||
}
|
||||
|
||||
func (s *store) shouldStoreActionSet(resource, permission string) bool {
|
||||
if !(s.features.IsEnabled(context.TODO(), featuremgmt.FlagAccessActionSets) && permission != "") {
|
||||
if permission == "" {
|
||||
return false
|
||||
}
|
||||
actionSetName := GetActionSetName(resource, permission)
|
||||
|
||||
Reference in New Issue
Block a user