✨ Add allow anonymous switch
This commit is contained in:
@@ -36,5 +36,11 @@ export const getConfig = (name: string): BackendConfigType => {
|
||||
writeConfig(backendConfig);
|
||||
}
|
||||
|
||||
if (!backendConfig.settings.access) {
|
||||
backendConfig.settings.access = {
|
||||
allowGuests: false,
|
||||
};
|
||||
}
|
||||
|
||||
return backendConfig;
|
||||
};
|
||||
|
||||
@@ -11,7 +11,7 @@ export const getFallbackConfig = (name?: string) => ({
|
||||
export const getStaticFallbackConfig = (name: string): ConfigType => ({
|
||||
schemaVersion: 1,
|
||||
configProperties: {
|
||||
name: name,
|
||||
name: name
|
||||
},
|
||||
categories: [
|
||||
{
|
||||
@@ -33,6 +33,9 @@ export const getStaticFallbackConfig = (name: string): ConfigType => ({
|
||||
apps: [],
|
||||
widgets: [],
|
||||
settings: {
|
||||
access: {
|
||||
allowGuests: false,
|
||||
},
|
||||
common: {
|
||||
searchEngine: {
|
||||
type: 'google',
|
||||
|
||||
Reference in New Issue
Block a user