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