Browse Source

fix: disable api docs access for viewer role

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/2252/head
Raju Udava 3 years ago
parent
commit
045ed0024a
  1. 2
      packages/nc-gui/components/ProjectTreeView.vue
  2. 3
      packages/nc-gui/helpers/rolePermissionsEE.js

2
packages/nc-gui/components/ProjectTreeView.vue

@ -681,6 +681,7 @@
</div>
<v-divider />
<template v-if="_isUIAllowed('apiDocs')">
<div
v-t="['e:api-docs']"
class="caption pointer nc-docs pb-2 pl-5 pr-3 pt-2 d-flex align-center"
@ -691,6 +692,7 @@
</v-icon>
{{ $t('title.apiDocs') }}
</div>
</template>
<template v-if="_isUIAllowed('settings')">
<div class="pl-5 pr-3 d-flex align-center pb-2">

3
packages/nc-gui/helpers/rolePermissionsEE.js

@ -14,7 +14,8 @@ export default {
fieldsSync: true,
gridColUpdate: true,
filterSync: true,
csvImport: true
csvImport: true,
apiDocs: true
},
commenter: {
smartSheet: true,

Loading…
Cancel
Save