Fix UploadThemeController to support disable:true customThemes flag

no issue
This commit is contained in:
Thibaut Patel 2021-04-08 19:32:46 +02:00
parent f172fedb58
commit f65c5a7f8b

View File

@ -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;
}
}