ui: Ignore Service/Node permissions for Overview just use operator (#12693)

This commit is contained in:
John Cowen 2022-04-07 11:35:49 +01:00 committed by GitHub
parent 264a3ed39e
commit 9516b96d92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -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))
} }
} }