2023-03-14 13:18:55 +00:00
|
|
|
/**
|
|
|
|
* Copyright (c) HashiCorp, Inc.
|
2023-08-11 13:12:13 +00:00
|
|
|
* SPDX-License-Identifier: BUSL-1.1
|
2023-03-14 13:18:55 +00:00
|
|
|
*/
|
|
|
|
|
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
|
|
|
}
|