diff options
author | Chocobozzz <me@florianbigard.com> | 2021-10-14 11:35:43 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-10-14 11:35:43 +0200 |
commit | cf0c8ee588e37809d85ec1deec1e4fdfa0f122a5 (patch) | |
tree | 1692868027592d2a300988643fdd96e5fdfe2091 /server/initializers/config.ts | |
parent | e1a570abff3ebf375433e58e7362d56bd32d4cd8 (diff) | |
download | PeerTube-cf0c8ee588e37809d85ec1deec1e4fdfa0f122a5.tar.gz PeerTube-cf0c8ee588e37809d85ec1deec1e4fdfa0f122a5.tar.zst PeerTube-cf0c8ee588e37809d85ec1deec1e4fdfa0f122a5.zip |
Fix admin edition disabling feature
Diffstat (limited to 'server/initializers/config.ts')
-rw-r--r-- | server/initializers/config.ts | 6 |
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') ] |