aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers
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/initializers
parente1a570abff3ebf375433e58e7362d56bd32d4cd8 (diff)
downloadPeerTube-cf0c8ee588e37809d85ec1deec1e4fdfa0f122a5.tar.gz
PeerTube-cf0c8ee588e37809d85ec1deec1e4fdfa0f122a5.tar.zst
PeerTube-cf0c8ee588e37809d85ec1deec1e4fdfa0f122a5.zip
Fix admin edition disabling feature
Diffstat (limited to 'server/initializers')
-rw-r--r--server/initializers/config.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/initializers/config.ts b/server/initializers/config.ts
index a37aae551..48bb5ab8e 100644
--- a/server/initializers/config.ts
+++ b/server/initializers/config.ts
@@ -206,8 +206,8 @@ const CONFIG = {
206 }, 206 },
207 WEBADMIN: { 207 WEBADMIN: {
208 CONFIGURATION: { 208 CONFIGURATION: {
209 EDITS: { 209 EDITION: {
210 ALLOWED: config.get<boolean>('webadmin.configuration.edit.allowed') 210 ALLOWED: config.get<boolean>('webadmin.configuration.edition.allowed')
211 } 211 }
212 } 212 }
213 }, 213 },
@@ -463,7 +463,7 @@ export function reloadConfig () {
463 463
464 function getConfigDirectories () { 464 function getConfigDirectories () {
465 if (process.env.NODE_CONFIG_DIR) { 465 if (process.env.NODE_CONFIG_DIR) {
466 return process.env.NODE_CONFIG_DIR.split(":") 466 return process.env.NODE_CONFIG_DIR.split(':')
467 } 467 }
468 468
469 return [ join(root(), 'config') ] 469 return [ join(root(), 'config') ]