From 2223ecf12ee6e7fbc4800a5ee73175d8856b1dc9 Mon Sep 17 00:00:00 2001 From: Kirill Solomko Date: Wed, 10 Nov 2021 12:46:04 +0100 Subject: [PATCH] TT#149460 add expand by profile_id, profile_set_id * profile_id expands NGCP::PanelRole::API::SubscriberProfiles allowed_roles: admin, reseller * profile_set_id expands NGCP::PanelRole::API::SubscriberProfileSets allowed_roles: admin, reseller Change-Id: I86aa81273d6f12fb1734b6c94597ca2e16b0bc12 --- lib/NGCP/Panel/Form/Expand.pm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/lib/NGCP/Panel/Form/Expand.pm b/lib/NGCP/Panel/Form/Expand.pm index e0b6deeac5..e13965758d 100644 --- a/lib/NGCP/Panel/Form/Expand.pm +++ b/lib/NGCP/Panel/Form/Expand.pm @@ -57,6 +57,26 @@ has_field 'domain_id' => ( }, ); +has_field 'profile_id' => ( + type => 'PosInteger', + element_attr => { + expand => { + class => 'NGCP::Panel::Role::API::SubscriberProfiles', + allowed_roles => [qw(admin reseller)], + }, + }, +); + +has_field 'profile_set_id' => ( + type => 'PosInteger', + element_attr => { + expand => { + class => 'NGCP::Panel::Role::API::SubscriberProfileSets', + allowed_roles => [qw(admin reseller)], + }, + }, +); + has_field 'reseller_id' => ( type => 'PosInteger', element_attr => {