Browse Source

chore(gui): lint

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/3796/head
Pranav C 2 years ago
parent
commit
f74ea9c044
  1. 8
      packages/nc-gui/composables/useUIPermission/rolePermissions.ts
  2. 2
      packages/nc-gui/nuxt-shim.d.ts

8
packages/nc-gui/composables/useUIPermission/rolePermissions.ts

@ -12,15 +12,15 @@ const rolePermissions = {
projectCreate: true, projectCreate: true,
projectActions: true, projectActions: true,
projectSettings: true, projectSettings: true,
} },
}, },
// Project role permissions // Project role permissions
[ProjectRole.Creator]: { [ProjectRole.Creator]: {
exclude: ["appStore"] exclude: ['appStore'],
}, },
[ProjectRole.Owner]: { [ProjectRole.Owner]: {
exclude: ["appStore"] exclude: ['appStore'],
}, },
[ProjectRole.Editor]: { [ProjectRole.Editor]: {
include: { include: {
@ -40,7 +40,7 @@ const rolePermissions = {
apiDocs: true, apiDocs: true,
projectSettings: true, projectSettings: true,
newUser: false, newUser: false,
} },
}, },
[ProjectRole.Commenter]: { [ProjectRole.Commenter]: {
include: { include: {

2
packages/nc-gui/nuxt-shim.d.ts vendored

@ -1,6 +1,6 @@
import type { Api as BaseAPI } from 'nocodb-sdk' import type { Api as BaseAPI } from 'nocodb-sdk'
import type { UseGlobalReturn } from './composables/useGlobal/types' import type { UseGlobalReturn } from './composables/useGlobal/types'
import type { NocoI18n, Roles } from './lib' import type { NocoI18n } from './lib'
import type { TabType } from './composables' import type { TabType } from './composables'
declare module '#app/nuxt' { declare module '#app/nuxt' {

Loading…
Cancel
Save