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

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

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

Loading…
Cancel
Save