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:
parent
de97328c42
commit
fc30aebd21
1 changed files with 2 additions and 2 deletions
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue