Authorization: Fix/provisioned permission display (#106179)
* add isProvisioned flag to permission DTO * handle provisioned permissions explicitly * lint * swagger * simplify logic to always show non-managed permissions first; remove unnecessary isProvisioned * fix docs * oops * actually just generate the docs
This commit is contained in:
@@ -496,6 +496,7 @@ func flatPermissionsToResourcePermissions(scope string, permissions []flatResour
|
||||
} else if p.IsInherited(scope) {
|
||||
inherited = append(inherited, p)
|
||||
} else {
|
||||
// Permissions which are neither managed nor inherited must have been provisioned
|
||||
provisioned = append(provisioned, p)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user