mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-01 23:37:43 +03:00
Fix UploadThemeController to support disable:true customThemes flag
no issue
This commit is contained in:
parent
f172fedb58
commit
f65c5a7f8b
@ -5,6 +5,6 @@ export default class UploadThemeController extends Controller {
|
||||
@service config;
|
||||
|
||||
get isAllowed() {
|
||||
return !this.config.get('hostSettings')?.limits?.customThemes;
|
||||
return (!this.config.get('hostSettings')?.limits?.customThemes) || this.config.get('hostSettings').limits.customThemes.disabled;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user