0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Revert "Replaced the config service by the limiter service"

This reverts commit fc30aebd21.
This commit is contained in:
Thibaut Patel 2021-04-08 13:53:52 +02:00
parent 72590083f3
commit d350a58769

View file

@ -2,9 +2,9 @@ import Controller from '@ember/controller';
import {inject as service} from '@ember/service';
export default class UploadThemeController extends Controller {
@service limit;
@service config;
get isAllowed() {
return !this.limit.limiter.isLimited('customThemes');
return !this.config.get('hostSettings')?.limits?.customThemes;
}
}