Access: Remove split scopes feature toggle (#81874)

* remove split scopes FT

* Revert "remove split scopes FT"

This reverts commit 349fb081d3.

* make toggle deprecated instead

* fix gen
This commit is contained in:
Jo
2024-02-05 17:00:19 +01:00
committed by GitHub
parent 596e828150
commit 7852ea012d
5 changed files with 9 additions and 14 deletions
@@ -667,9 +667,7 @@ func (s *store) createPermissions(sess *db.Session, roleID int64, resource, reso
p.RoleID = roleID
p.Created = time.Now()
p.Updated = time.Now()
if s.features.IsEnabledGlobally(featuremgmt.FlagSplitScopes) {
p.Kind, p.Attribute, p.Identifier = p.SplitScope()
}
p.Kind, p.Attribute, p.Identifier = p.SplitScope()
permissions = append(permissions, p)
}