From f8fd17bb3e3bb923f21a93d105a46ec568a468b7 Mon Sep 17 00:00:00 2001 From: Marco Capetta Date: Wed, 25 Oct 2023 14:57:08 +0200 Subject: [PATCH] MT#58596 Enable api soundgroups and soundhandles for subscriber The commit extends what done already in e15e40423 allowing the subscribers to get the soundgroups and soundhandles using API. This is necessary for some CSC features like the selection of the Custom Announcement to play after Call Forward. Change-Id: I40d57d1efdc107c64fe3efafd9e87d1403c4d124 --- lib/NGCP/Panel/Controller/API/SoundGroups.pm | 2 +- lib/NGCP/Panel/Controller/API/SoundGroupsItem.pm | 2 +- lib/NGCP/Panel/Controller/API/SoundHandles.pm | 2 +- lib/NGCP/Panel/Controller/API/SoundHandlesItem.pm | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/NGCP/Panel/Controller/API/SoundGroups.pm b/lib/NGCP/Panel/Controller/API/SoundGroups.pm index 8bde218eae..834ac493d9 100644 --- a/lib/NGCP/Panel/Controller/API/SoundGroups.pm +++ b/lib/NGCP/Panel/Controller/API/SoundGroups.pm @@ -8,7 +8,7 @@ use HTTP::Status qw(:constants); use NGCP::Panel::Utils::Security; __PACKAGE__->set_config({ - allowed_roles => [qw/admin reseller subscriberadmin/], + allowed_roles => [qw/admin reseller subscriberadmin subscriber/], }); sub allowed_methods { diff --git a/lib/NGCP/Panel/Controller/API/SoundGroupsItem.pm b/lib/NGCP/Panel/Controller/API/SoundGroupsItem.pm index 4313d86a43..37cf724f79 100644 --- a/lib/NGCP/Panel/Controller/API/SoundGroupsItem.pm +++ b/lib/NGCP/Panel/Controller/API/SoundGroupsItem.pm @@ -6,7 +6,7 @@ use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::SoundGroup use HTTP::Status qw(:constants); __PACKAGE__->set_config({ - allowed_roles => [qw/admin reseller subscriberadmin/], + allowed_roles => [qw/admin reseller subscriberadmin subscriber/], }); sub allowed_methods{ diff --git a/lib/NGCP/Panel/Controller/API/SoundHandles.pm b/lib/NGCP/Panel/Controller/API/SoundHandles.pm index 711cc487a6..d1f94c3ab4 100644 --- a/lib/NGCP/Panel/Controller/API/SoundHandles.pm +++ b/lib/NGCP/Panel/Controller/API/SoundHandles.pm @@ -7,7 +7,7 @@ use HTTP::Status qw(:constants); use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::SoundHandles/; __PACKAGE__->set_config({ - allowed_roles => [qw/admin reseller subscriberadmin/], + allowed_roles => [qw/admin reseller subscriberadmin subscriber/], }); sub allowed_methods{ diff --git a/lib/NGCP/Panel/Controller/API/SoundHandlesItem.pm b/lib/NGCP/Panel/Controller/API/SoundHandlesItem.pm index f2ce68df61..267af56fca 100644 --- a/lib/NGCP/Panel/Controller/API/SoundHandlesItem.pm +++ b/lib/NGCP/Panel/Controller/API/SoundHandlesItem.pm @@ -9,7 +9,7 @@ use HTTP::Status qw(:constants); use parent qw/NGCP::Panel::Role::EntitiesItem NGCP::Panel::Role::API::SoundHandles/; __PACKAGE__->set_config({ - allowed_roles => [qw/admin reseller subscriberadmin/], + allowed_roles => [qw/admin reseller subscriberadmin subscriber/], }); sub allowed_methods{