fix: frontend permission check (#784)

This commit is contained in:
Matri 2023-08-15 13:35:47 +08:00 committed by GitHub
commit 2c77a74c40
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 186 additions and 74 deletions

View file

@ -118,6 +118,13 @@ export type IWorkspace = {
current: boolean
}
export type ICurrentWorkspace = Omit<IWorkspace, 'current'> & {
role: 'normal' | 'admin' | 'owner'
providers: Provider[]
in_trail: boolean
trial_end_reason?: string
}
export type DataSourceNotionPage = {
page_icon: null | {
type: string | null