diff --git a/src/main.ts b/src/main.ts index 20ab4841..9539c0cb 100644 --- a/src/main.ts +++ b/src/main.ts @@ -173,10 +173,9 @@ async function loadCurrentUser() { app.directive( "permission", (el: HTMLElement, binding: DirectiveBinding) => { - // const uiPermissions = Array.from( - // currentPermissions.uiPermissions - // ); - const uiPermissions = Array.from(["system:attachments:view"]); + const uiPermissions = Array.from( + currentPermissions.uiPermissions + ); const { value } = binding; const { any, enable } = binding.modifiers; diff --git a/src/modules/contents/attachments/AttachmentList.vue b/src/modules/contents/attachments/AttachmentList.vue index bb353018..b4d72db1 100644 --- a/src/modules/contents/attachments/AttachmentList.vue +++ b/src/modules/contents/attachments/AttachmentList.vue @@ -609,7 +609,7 @@ onMounted(() => {