2023-03-14 14:18:55 +01:00
|
|
|
/**
|
|
|
|
* Copyright (c) HashiCorp, Inc.
|
2023-08-11 09:12:13 -04:00
|
|
|
* SPDX-License-Identifier: BUSL-1.1
|
2023-03-14 14:18:55 +01:00
|
|
|
*/
|
|
|
|
|
2022-03-15 12:58:14 +00:00
|
|
|
import BaseAbility from './base';
|
2022-04-18 16:05:16 -04: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 16:05:16 -04:00
|
|
|
|
|
|
|
@service('env') env;
|
|
|
|
|
|
|
|
get canRead() {
|
|
|
|
return this.env.var('CONSUL_NSPACES_ENABLED') && super.canRead;
|
|
|
|
}
|
2022-03-15 12:58:14 +00:00
|
|
|
}
|