Browse Source

fix(nc-gui): show audit logs tab only if user has permission

pull/8836/head
Ramesh Mane 5 months ago
parent
commit
58b2551be6
  1. 2
      packages/nc-gui/components/workspace/AuditLogs.vue
  2. 2
      packages/nc-gui/components/workspace/View.vue

2
packages/nc-gui/components/workspace/AuditLogs.vue

@ -701,7 +701,7 @@ onMounted(async () => {
class="relative" class="relative"
:class="{ :class="{
'h-[calc(100%_-_92px)] ': baseId, 'h-[calc(100%_-_92px)] ': baseId,
'h-[calc(100%_-_134px)]': !baseId, 'h-[calc(100%_-_140px)]': !baseId,
}" }"
> >
<div class="table-wrapper max-h-[calc(100%_-_40px)] overflow-auto nc-scrollbar-thin relative"> <div class="table-wrapper max-h-[calc(100%_-_40px)] overflow-auto nc-scrollbar-thin relative">

2
packages/nc-gui/components/workspace/View.vue

@ -121,6 +121,7 @@ onMounted(() => {
</a-tab-pane> </a-tab-pane>
</template> </template>
<template v-if="isUIAllowed('workspaceAuditList')">
<a-tab-pane key="audit" class="w-full"> <a-tab-pane key="audit" class="w-full">
<template #tab> <template #tab>
<div class="flex flex-row items-center px-2 pb-1 gap-x-1.5"> <div class="flex flex-row items-center px-2 pb-1 gap-x-1.5">
@ -132,6 +133,7 @@ onMounted(() => {
<WorkspaceAuditLogs :workspace-id="currentWorkspace.id" /> <WorkspaceAuditLogs :workspace-id="currentWorkspace.id" />
</div> </div>
</a-tab-pane> </a-tab-pane>
</template>
</NcTabs> </NcTabs>
</div> </div>
</template> </template>

Loading…
Cancel
Save