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

Replaced the config service by the limiter service

comment 634d2daa13 (r49241858)
This commit is contained in:
Thibaut Patel 2021-04-08 10:56:00 +02:00
parent de97328c42
commit fc30aebd21

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 config;
@service limit;
get isAllowed() {
return !this.config.get('hostSettings')?.limits?.customThemes;
return !this.limit.limiter.isLimited('customThemes');
}
}