Browse Source

fix(nc-gui): Hide Members tab for base when user doesn't have newUser permission (#7922)

pull/7925/head
IFGGit 4 months ago committed by GitHub
parent
commit
c0ccb1cdf0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      packages/nc-gui/components/project/View.vue

4
packages/nc-gui/components/project/View.vue

@ -20,7 +20,7 @@ const { $e } = useNuxtApp()
return openedProject.value?.sources?.[0]
}) */
const { isUIAllowed } = useRoles()
const { isUIAllowed, baseRoles } = useRoles()
const { base } = storeToRefs(useBase())
@ -121,7 +121,7 @@ watch(
<!-- <a-tab-pane v-if="defaultBase" key="erd" tab="Base ERD" force-render class="pt-4 pb-12">
<ErdView :source-id="defaultBase!.id" class="!h-full" />
</a-tab-pane> -->
<a-tab-pane v-if="isUIAllowed('newUser')" key="collaborator">
<a-tab-pane v-if="isUIAllowed('newUser', { roles: baseRoles })" key="collaborator">
<template #tab>
<div class="tab-title" data-testid="proj-view-tab__access-settings">
<GeneralIcon icon="users" class="!h-3.5 !w-3.5" />

Loading…
Cancel
Save