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:
parent
72590083f3
commit
d350a58769
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 limit;
|
||||
@service config;
|
||||
|
||||
get isAllowed() {
|
||||
return !this.limit.limiter.isLimited('customThemes');
|
||||
return !this.config.get('hostSettings')?.limits?.customThemes;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue