Browse Source

fix: hide comments from viewer role

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/765/head
Pranav C 3 years ago
parent
commit
04ad748f15
  1. 3
      packages/nc-gui/components/project/spreadsheet/components/expandedForm.vue
  2. 6
      packages/nc-gui/helpers/rolePermissionsEE.js

3
packages/nc-gui/components/project/spreadsheet/components/expandedForm.vue

@ -32,7 +32,7 @@
</x-icon>
<x-icon
v-if="!isNew"
v-if="!isNew && _isUIAllowed('rowComments')"
icon-class="mr-2"
tooltip="Toggle comments"
small
@ -246,6 +246,7 @@
</div>
<v-btn
v-if="_isUIAllowed('rowComments')"
v-show="!toggleDrawer"
class="comment-icon"
color="primary"

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

@ -7,11 +7,13 @@ export default {
xcDatatableEditable: true,
column: true,
tableAttachment: true,
tableRowUpdate: true
tableRowUpdate: true,
rowComments: true
},
commenter: {
airTable: true,
column: true
column: true,
rowComments: true
},
viewer: {
airTable: true,

Loading…
Cancel
Save