File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ import { t } from '@nextcloud/l10n'
4646import { getCurrentUser } from ' @nextcloud/auth'
4747import { loadState } from ' @nextcloud/initial-state'
4848import { generateUrl } from ' @nextcloud/router'
49- import { computed } from ' vue'
49+ import { computed , onMounted } from ' vue'
5050
5151import { usePoliciesStore } from ' ../../store/policies'
5252
@@ -101,7 +101,11 @@ const hasEditablePolicies = computed(() => Object.values(policiesStore.policies)
101101 return policyState .editableByCurrentActor === true
102102}))
103103
104- const canManagePolicies = computed (() => isAdmin || (Boolean (config .can_manage_group_policies ) && hasEditablePolicies .value ))
104+ const canManagePolicies = computed (() => isAdmin || hasEditablePolicies .value )
105+
106+ onMounted (() => {
107+ void policiesStore .fetchEffectivePolicies ()
108+ })
105109
106110function getAdminRoute() {
107111 return generateUrl (' settings/admin/libresign' )
You can’t perform that action at this time.
0 commit comments