fix a bug (#48782)
This commit is contained in:
@@ -155,7 +155,7 @@ func (ac *OSSAccessControlService) GetUserBuiltInRoles(user *models.SignedInUser
|
|||||||
builtInRoles := []string{string(user.OrgRole)}
|
builtInRoles := []string{string(user.OrgRole)}
|
||||||
|
|
||||||
// With built-in role simplifying, inheritance is performed upon role registration.
|
// With built-in role simplifying, inheritance is performed upon role registration.
|
||||||
if ac.IsDisabled() {
|
if !ac.features.IsEnabled(featuremgmt.FlagAccesscontrolBuiltins) {
|
||||||
for _, br := range user.OrgRole.Children() {
|
for _, br := range user.OrgRole.Children() {
|
||||||
builtInRoles = append(builtInRoles, string(br))
|
builtInRoles = append(builtInRoles, string(br))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user