aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/server-config-manager.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-10-14 11:35:43 +0200
committerChocobozzz <me@florianbigard.com>2021-10-14 11:35:43 +0200
commitcf0c8ee588e37809d85ec1deec1e4fdfa0f122a5 (patch)
tree1692868027592d2a300988643fdd96e5fdfe2091 /server/lib/server-config-manager.ts
parente1a570abff3ebf375433e58e7362d56bd32d4cd8 (diff)
downloadPeerTube-cf0c8ee588e37809d85ec1deec1e4fdfa0f122a5.tar.gz
PeerTube-cf0c8ee588e37809d85ec1deec1e4fdfa0f122a5.tar.zst
PeerTube-cf0c8ee588e37809d85ec1deec1e4fdfa0f122a5.zip
Fix admin edition disabling feature
Diffstat (limited to 'server/lib/server-config-manager.ts')
-rw-r--r--server/lib/server-config-manager.ts10
1 files changed, 9 insertions, 1 deletions
diff --git a/server/lib/server-config-manager.ts b/server/lib/server-config-manager.ts
index 58a37b56c..b78251e8c 100644
--- a/server/lib/server-config-manager.ts
+++ b/server/lib/server-config-manager.ts
@@ -42,7 +42,6 @@ class ServerConfigManager {
42 const defaultTheme = getThemeOrDefault(CONFIG.THEME.DEFAULT, DEFAULT_THEME_NAME) 42 const defaultTheme = getThemeOrDefault(CONFIG.THEME.DEFAULT, DEFAULT_THEME_NAME)
43 43
44 return { 44 return {
45 allowEdits: CONFIG.WEBADMIN.CONFIGURATION.EDITS.ALLOWED,
46 client: { 45 client: {
47 videos: { 46 videos: {
48 miniature: { 47 miniature: {
@@ -50,6 +49,15 @@ class ServerConfigManager {
50 } 49 }
51 } 50 }
52 }, 51 },
52
53 webadmin: {
54 configuration: {
55 edition: {
56 allowed: CONFIG.WEBADMIN.CONFIGURATION.EDITION.ALLOWED
57 }
58 }
59 },
60
53 instance: { 61 instance: {
54 name: CONFIG.INSTANCE.NAME, 62 name: CONFIG.INSTANCE.NAME,
55 shortDescription: CONFIG.INSTANCE.SHORT_DESCRIPTION, 63 shortDescription: CONFIG.INSTANCE.SHORT_DESCRIPTION,