2023-03-14 13:18:55 +00:00
|
|
|
/**
|
|
|
|
* Copyright (c) HashiCorp, Inc.
|
|
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
|
|
*/
|
|
|
|
|
2022-03-15 12:58:14 +00:00
|
|
|
import BaseAbility from './base';
|
2022-04-18 20:05:16 +00:00
|
|
|
import { inject as service } from '@ember/service';
|
2022-03-15 12:58:14 +00:00
|
|
|
|
|
|
|
export default class LicenseAbility extends BaseAbility {
|
|
|
|
resource = 'operator';
|
|
|
|
segmented = false;
|
2022-04-18 20:05:16 +00:00
|
|
|
|
|
|
|
@service('env') env;
|
|
|
|
|
|
|
|
get canRead() {
|
|
|
|
return this.env.var('CONSUL_NSPACES_ENABLED') && super.canRead;
|
|
|
|
}
|
2022-03-15 12:58:14 +00:00
|
|
|
}
|