Browse Source

fix: enable project operations for user

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/510/head
Pranav C 3 years ago
parent
commit
d6dcdea1b6
  1. 4
      packages/nc-gui/components/project/spreadsheet/components/spreadsheetNavDrawer.vue
  2. 3
      packages/nc-gui/helpers/rolePermissionsEE.js
  3. 4
      packages/nc-gui/pages/projects/index.vue

4
packages/nc-gui/components/project/spreadsheet/components/spreadsheetNavDrawer.vue

@ -141,7 +141,7 @@
</v-list-item>
<v-tooltip bottom>
<template #activator="{ on }">
<v-list-item dense class="body-2" v-on="on" @click="openCreateViewDlg('grid')">
<v-list-item dense class="body-2 nc-create-grid-view" v-on="on" @click="openCreateViewDlg('grid')">
<v-list-item-icon class="mr-n1">
<v-icon color="blue" x-small>
mdi-grid-large
@ -164,7 +164,7 @@
</v-tooltip>
<v-tooltip bottom>
<template #activator="{ on }">
<v-list-item dense class="body-2" v-on="on" @click="openCreateViewDlg('gallery')">
<v-list-item dense class="body-2 nc-create-gallery-view" v-on="on" @click="openCreateViewDlg('gallery')">
<v-list-item-icon class="mr-n1">
<v-icon color="orange" x-small>
mdi-camera-image

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

@ -16,7 +16,8 @@ export default {
column: true
},
user: {
projectCreate: true
projectCreate: true,
projectActions: true
}
}
/**

4
packages/nc-gui/pages/projects/index.vue

@ -270,7 +270,7 @@
</td>
<td>
<div
v-if="_isUIAllowed('project.actions',true)"
v-if="_isUIAllowed('projectActions',true)"
:class="{
'action-icons': !(
projectStatusUpdating &&
@ -610,8 +610,8 @@
</template>
<script>
import SponsorMini from '@/components/sponsorMini'
import dlgLabelSubmitCancel from '../../components/utils/dlgLabelSubmitCancel.vue'
import SponsorMini from '@/components/sponsorMini'
import colors from '~/mixins/colors'
export default {

Loading…
Cancel
Save