File tree Expand file tree Collapse file tree
src/views/Settings/PolicyWorkbench Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -296,6 +296,7 @@ function toDraftSnapshot(draft: PolicyEditorDraft | null): string {
296296export function createRealPolicyWorkbenchState ( ) {
297297 const policiesStore = usePoliciesStore ( )
298298 const currentUser = getCurrentUser ( )
299+ const isInstanceAdmin = currentUser ?. isAdmin === true
299300 const config = loadState < { can_manage_group_policies ?: boolean } > ( 'libresign' , 'config' , { } )
300301 const initialViewMode : 'system-admin' | 'group-admin' = currentUser ?. isAdmin
301302 ? 'system-admin'
@@ -509,6 +510,10 @@ export function createRealPolicyWorkbenchState() {
509510 } )
510511
511512 const createGroupOverrideDisabledReason = computed ( ( ) => {
513+ if ( isInstanceAdmin ) {
514+ return null
515+ }
516+
512517 if ( inheritedSystemRule . value ?. allowChildOverride === false ) {
513518 return t ( 'libresign' , 'Blocked by the global default.' )
514519 }
You can’t perform that action at this time.
0 commit comments