Signed-off-by: Pranav C <pranavxc@gmail.com>
@ -12,15 +12,15 @@ const rolePermissions = {
projectCreate: true,
projectActions: true,
projectSettings: true,
}
},
// Project role permissions
[ProjectRole.Creator]: {
exclude: ["appStore"]
exclude: ['appStore'],
[ProjectRole.Owner]: {
[ProjectRole.Editor]: {
include: {
@ -40,22 +40,22 @@ const rolePermissions = {
apiDocs: true,
newUser: false,
[ProjectRole.Commenter]: {
smartSheet: true,
column: true,
rowComments: true,
[ProjectRole.Viewer]: {
} as const
@ -39,7 +39,7 @@ export default defineNuxtRouteMiddleware(async (to, from) => {
const { api } = useApi()
const {allRoles} = useRoles()
const { allRoles } = useRoles()
/** if user isn't signed in and google auth is enabled, try to check if sign-in data is present */
if (!state.signedIn && state.appInfo.value.googleAuthEnabled) await tryGoogleAuth()
@ -1,6 +1,6 @@
import type { Api as BaseAPI } from 'nocodb-sdk'
import type { UseGlobalReturn } from './composables/useGlobal/types'
import type { NocoI18n, Roles } from './lib'
import type { NocoI18n } from './lib'
import type { TabType } from './composables'
declare module '#app/nuxt' {