From 7e37f4b81c311cd07b1ed731b11e80c64fd93ada Mon Sep 17 00:00:00 2001 From: Kirill Solomko Date: Wed, 27 Jul 2022 12:28:37 +0200 Subject: [PATCH] TT#186501 fix /api/capabilities for ccare roles * ccareadmin and ccare roles are now able to correctly fetch the capabilities data Change-Id: I4f4355dfe594a9342fd35c0c01984ef132d7d1a6 --- lib/NGCP/Panel/Role/API/Capabilities.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/NGCP/Panel/Role/API/Capabilities.pm b/lib/NGCP/Panel/Role/API/Capabilities.pm index 4160a5ddce..3f3b7c3beb 100644 --- a/lib/NGCP/Panel/Role/API/Capabilities.pm +++ b/lib/NGCP/Panel/Role/API/Capabilities.pm @@ -64,6 +64,8 @@ sub _item_rs { # nothing to be done } elsif($c->user->roles eq "reseller") { # nothing to be done + } elsif($c->user->roles eq "ccareadmin" || $c->user->roles eq "ccare") { + # nothing to be done } else { my $customer = $c->user->voip_subscriber->contract;