From ae2210a261cfc1870a977d43075546b737f01816 Mon Sep 17 00:00:00 2001 From: braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Thu, 15 Sep 2022 21:00:08 +0200 Subject: [PATCH] fix(nc-gui): use cb for permission check --- packages/nc-gui/components/tabs/Auth.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/nc-gui/components/tabs/Auth.vue b/packages/nc-gui/components/tabs/Auth.vue index 206fd89b93..0d04cd4ddd 100644 --- a/packages/nc-gui/components/tabs/Auth.vue +++ b/packages/nc-gui/components/tabs/Auth.vue @@ -7,7 +7,7 @@ interface Tab { title: string label: string body: any - isUIAllowed: boolean + isUIAllowed: () => boolean } const { t } = useI18n() @@ -19,13 +19,13 @@ const tabsInfo: Tab[] = [ title: 'Users Management', label: t('title.userMgmt'), body: () => UserManagement, - isUIAllowed: isUIAllowed('userMgmtTab'), + isUIAllowed: () => isUIAllowed('userMgmtTab'), }, { title: 'API Token Management', label: t('title.apiTokenMgmt'), body: () => ApiTokenManagement, - isUIAllowed: isUIAllowed('apiTokenTab'), + isUIAllowed: () => isUIAllowed('apiTokenTab'), }, ] @@ -34,7 +34,7 @@ const selectedTab = $computed(() => tabsInfo[selectedTabKey])