mirror of https://github.com/status-im/consul.git
ui: Ignore Service/Node permissions for Overview just use operator (#12693)
This commit is contained in:
parent
6928ea090f
commit
b3c7f44d32
|
@ -1,8 +1,9 @@
|
|||
import BaseAbility from './base';
|
||||
|
||||
export default class OverviewAbility extends BaseAbility {
|
||||
resource = 'operator';
|
||||
segmented = false;
|
||||
get canAccess() {
|
||||
return ['read services', 'read nodes', 'read license']
|
||||
.some(item => this.permissions.can(item))
|
||||
return this.canRead;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue