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-09-14 18:39:50 +00:00
|
|
|
import { inject as service } from '@ember/service';
|
2022-03-15 12:58:14 +00:00
|
|
|
|
|
|
|
export default class OverviewAbility extends BaseAbility {
|
2022-09-14 18:39:50 +00:00
|
|
|
@service('env') env;
|
|
|
|
|
2022-04-07 10:35:49 +00:00
|
|
|
resource = 'operator';
|
|
|
|
segmented = false;
|
2022-03-15 12:58:14 +00:00
|
|
|
get canAccess() {
|
2022-09-14 18:39:50 +00:00
|
|
|
return !this.env.var('CONSUL_HCP_ENABLED') && this.canRead;
|
2022-03-15 12:58:14 +00:00
|
|
|
}
|
|
|
|
}
|