import Controller from '@ember/controller';
import {inject as service} from '@ember/service';

export default class UploadThemeController extends Controller {
    @service limit;

    get isAllowed() {
        return !this.limit.limiter.isLimited('customThemes');
    }
}

import Controller from '@ember/controller';
import {inject as service} from '@ember/service';

export default class UploadThemeController extends Controller {
    @service config;

    get isAllowed() {
        return !this.config.get('hostSettings')?.limits?.customThemes;
    }
}

Revert "Replaced the config service by the limiter service"
Revert "Replaced the config service by the limiter service"

This reverts commit fc30aebd212ebd186bf7f8f93e0bf29473d7f9a2.
