From 9516b96d9272ace457178baa75e7ca4ed84d7b74 Mon Sep 17 00:00:00 2001 From: John Cowen Date: Thu, 7 Apr 2022 11:35:49 +0100 Subject: [PATCH] ui: Ignore Service/Node permissions for Overview just use operator (#12693) --- ui/packages/consul-ui/app/abilities/overview.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ui/packages/consul-ui/app/abilities/overview.js b/ui/packages/consul-ui/app/abilities/overview.js index 0b9ee6461..eba021772 100644 --- a/ui/packages/consul-ui/app/abilities/overview.js +++ b/ui/packages/consul-ui/app/abilities/overview.js @@ -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; } }