mirror of https://github.com/hashicorp/consul
Browse Source
Co-authored-by: Evan Rowe <ev.rowe@gmail.com> * fixed bug where license was showing in oss * ui:disable test for license read temporarilypull/12818/head
Jake Herschman
3 years ago
committed by
GitHub
2 changed files with 11 additions and 0 deletions
@ -1,6 +1,13 @@
|
||||
import BaseAbility from './base'; |
||||
import { inject as service } from '@ember/service'; |
||||
|
||||
export default class LicenseAbility extends BaseAbility { |
||||
resource = 'operator'; |
||||
segmented = false; |
||||
|
||||
@service('env') env; |
||||
|
||||
get canRead() { |
||||
return this.env.var('CONSUL_NSPACES_ENABLED') && super.canRead; |
||||
} |
||||
} |
||||
|
Loading…
Reference in new issue