mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-19 17:55:17 -04:00
fix(frontend-config): use guest access level instead of allowAnonymous
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
parent
56643ffd85
commit
1207ce7690
4 changed files with 17 additions and 9 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue