mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-03 09:49:20 +02:00
Fix admin edition disabling feature
This commit is contained in:
parent
e1a570abff
commit
cf0c8ee588
14 changed files with 61 additions and 20 deletions
|
@ -42,7 +42,6 @@ class ServerConfigManager {
|
|||
const defaultTheme = getThemeOrDefault(CONFIG.THEME.DEFAULT, DEFAULT_THEME_NAME)
|
||||
|
||||
return {
|
||||
allowEdits: CONFIG.WEBADMIN.CONFIGURATION.EDITS.ALLOWED,
|
||||
client: {
|
||||
videos: {
|
||||
miniature: {
|
||||
|
@ -50,6 +49,15 @@ class ServerConfigManager {
|
|||
}
|
||||
}
|
||||
},
|
||||
|
||||
webadmin: {
|
||||
configuration: {
|
||||
edition: {
|
||||
allowed: CONFIG.WEBADMIN.CONFIGURATION.EDITION.ALLOWED
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
instance: {
|
||||
name: CONFIG.INSTANCE.NAME,
|
||||
shortDescription: CONFIG.INSTANCE.SHORT_DESCRIPTION,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue