fix(frontend-config): use guest access level instead of allowAnonymous

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
Erik Michelson 2023-09-24 22:56:31 +02:00
parent 56643ffd85
commit 1207ce7690
4 changed files with 17 additions and 9 deletions

View file

@ -5,10 +5,10 @@
*/
export interface FrontendConfig {
allowAnonymous: boolean
allowRegister: boolean
authProviders: AuthProvider[]
branding: BrandingConfig
guestAccess: GuestAccessLevel
useImageProxy: boolean
specialUrls: SpecialUrls
version: BackendVersion
@ -16,6 +16,13 @@ export interface FrontendConfig {
maxDocumentLength: number
}
export enum GuestAccessLevel {
DENY = 'deny',
READ = 'read',
WRITE = 'write',
CREATE = 'create'
}
export enum AuthProviderType {
DROPBOX = 'dropbox',
FACEBOOK = 'facebook',