diff --git a/lib/NGCP/Panel/Controller/API/ApplyRewrites.pm b/lib/NGCP/Panel/Controller/API/ApplyRewrites.pm index 5088e47022..f853e7a14c 100644 --- a/lib/NGCP/Panel/Controller/API/ApplyRewrites.pm +++ b/lib/NGCP/Panel/Controller/API/ApplyRewrites.pm @@ -52,11 +52,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/AutoAttendants.pm b/lib/NGCP/Panel/Controller/API/AutoAttendants.pm index 6ff84f4622..140b14acd8 100644 --- a/lib/NGCP/Panel/Controller/API/AutoAttendants.pm +++ b/lib/NGCP/Panel/Controller/API/AutoAttendants.pm @@ -55,11 +55,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/AutoAttendantsItem.pm b/lib/NGCP/Panel/Controller/API/AutoAttendantsItem.pm index ff21462dc5..62a7358785 100644 --- a/lib/NGCP/Panel/Controller/API/AutoAttendantsItem.pm +++ b/lib/NGCP/Panel/Controller/API/AutoAttendantsItem.pm @@ -53,11 +53,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/BalanceIntervals.pm b/lib/NGCP/Panel/Controller/API/BalanceIntervals.pm index 8b650f702a..e4336e30d3 100644 --- a/lib/NGCP/Panel/Controller/API/BalanceIntervals.pm +++ b/lib/NGCP/Panel/Controller/API/BalanceIntervals.pm @@ -99,11 +99,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; diff --git a/lib/NGCP/Panel/Controller/API/BalanceIntervalsItem.pm b/lib/NGCP/Panel/Controller/API/BalanceIntervalsItem.pm index 821608f5c2..8d59364564 100644 --- a/lib/NGCP/Panel/Controller/API/BalanceIntervalsItem.pm +++ b/lib/NGCP/Panel/Controller/API/BalanceIntervalsItem.pm @@ -97,11 +97,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + sub GET :Allow { my ($self, $c, $id) = @_; diff --git a/lib/NGCP/Panel/Controller/API/BillingFees.pm b/lib/NGCP/Panel/Controller/API/BillingFees.pm index 01d42eb491..d90e1a0088 100644 --- a/lib/NGCP/Panel/Controller/API/BillingFees.pm +++ b/lib/NGCP/Panel/Controller/API/BillingFees.pm @@ -64,11 +64,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + sub auto :Private { my ($self, $c) = @_; diff --git a/lib/NGCP/Panel/Controller/API/BillingFeesItem.pm b/lib/NGCP/Panel/Controller/API/BillingFeesItem.pm index 9035eabccf..d68361d279 100644 --- a/lib/NGCP/Panel/Controller/API/BillingFeesItem.pm +++ b/lib/NGCP/Panel/Controller/API/BillingFeesItem.pm @@ -40,11 +40,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/BillingNetworks.pm b/lib/NGCP/Panel/Controller/API/BillingNetworks.pm index 9293e8d94e..a107189519 100644 --- a/lib/NGCP/Panel/Controller/API/BillingNetworks.pm +++ b/lib/NGCP/Panel/Controller/API/BillingNetworks.pm @@ -89,11 +89,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/BillingNetworksItem.pm b/lib/NGCP/Panel/Controller/API/BillingNetworksItem.pm index 88c7746df1..5deada2a09 100644 --- a/lib/NGCP/Panel/Controller/API/BillingNetworksItem.pm +++ b/lib/NGCP/Panel/Controller/API/BillingNetworksItem.pm @@ -54,11 +54,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/BillingProfiles.pm b/lib/NGCP/Panel/Controller/API/BillingProfiles.pm index 4da2cacaa3..11c8c3adb2 100644 --- a/lib/NGCP/Panel/Controller/API/BillingProfiles.pm +++ b/lib/NGCP/Panel/Controller/API/BillingProfiles.pm @@ -76,11 +76,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/BillingProfilesItem.pm b/lib/NGCP/Panel/Controller/API/BillingProfilesItem.pm index 17c4c8ca09..db40773635 100644 --- a/lib/NGCP/Panel/Controller/API/BillingProfilesItem.pm +++ b/lib/NGCP/Panel/Controller/API/BillingProfilesItem.pm @@ -50,11 +50,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/BillingZones.pm b/lib/NGCP/Panel/Controller/API/BillingZones.pm index 94468f0176..67b56a6ce8 100644 --- a/lib/NGCP/Panel/Controller/API/BillingZones.pm +++ b/lib/NGCP/Panel/Controller/API/BillingZones.pm @@ -74,11 +74,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/BillingZonesItem.pm b/lib/NGCP/Panel/Controller/API/BillingZonesItem.pm index 6e2e538ef7..5c2b9bba34 100644 --- a/lib/NGCP/Panel/Controller/API/BillingZonesItem.pm +++ b/lib/NGCP/Panel/Controller/API/BillingZonesItem.pm @@ -50,11 +50,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/CCMapEntries.pm b/lib/NGCP/Panel/Controller/API/CCMapEntries.pm index 10c6907584..3c1604950d 100644 --- a/lib/NGCP/Panel/Controller/API/CCMapEntries.pm +++ b/lib/NGCP/Panel/Controller/API/CCMapEntries.pm @@ -53,11 +53,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/CCMapEntriesItem.pm b/lib/NGCP/Panel/Controller/API/CCMapEntriesItem.pm index 31ce95de5f..02797ea455 100644 --- a/lib/NGCP/Panel/Controller/API/CCMapEntriesItem.pm +++ b/lib/NGCP/Panel/Controller/API/CCMapEntriesItem.pm @@ -53,11 +53,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/CFDestinationSets.pm b/lib/NGCP/Panel/Controller/API/CFDestinationSets.pm index 94594b06a8..2bcbf9b75e 100644 --- a/lib/NGCP/Panel/Controller/API/CFDestinationSets.pm +++ b/lib/NGCP/Panel/Controller/API/CFDestinationSets.pm @@ -78,11 +78,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/CFDestinationSetsItem.pm b/lib/NGCP/Panel/Controller/API/CFDestinationSetsItem.pm index 323205b782..09e393af9c 100644 --- a/lib/NGCP/Panel/Controller/API/CFDestinationSetsItem.pm +++ b/lib/NGCP/Panel/Controller/API/CFDestinationSetsItem.pm @@ -53,11 +53,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/CFMappings.pm b/lib/NGCP/Panel/Controller/API/CFMappings.pm index eb11c2bf0d..843d7ff27d 100644 --- a/lib/NGCP/Panel/Controller/API/CFMappings.pm +++ b/lib/NGCP/Panel/Controller/API/CFMappings.pm @@ -69,11 +69,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/CFMappingsItem.pm b/lib/NGCP/Panel/Controller/API/CFMappingsItem.pm index d551fc7de2..1c6dbdc63a 100644 --- a/lib/NGCP/Panel/Controller/API/CFMappingsItem.pm +++ b/lib/NGCP/Panel/Controller/API/CFMappingsItem.pm @@ -53,11 +53,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/CFSourceSets.pm b/lib/NGCP/Panel/Controller/API/CFSourceSets.pm index 134868d1e4..2b044f46a8 100644 --- a/lib/NGCP/Panel/Controller/API/CFSourceSets.pm +++ b/lib/NGCP/Panel/Controller/API/CFSourceSets.pm @@ -85,11 +85,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/CFSourceSetsItem.pm b/lib/NGCP/Panel/Controller/API/CFSourceSetsItem.pm index 1b44fdcfea..6226fd2798 100644 --- a/lib/NGCP/Panel/Controller/API/CFSourceSetsItem.pm +++ b/lib/NGCP/Panel/Controller/API/CFSourceSetsItem.pm @@ -53,11 +53,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/CFTimeSets.pm b/lib/NGCP/Panel/Controller/API/CFTimeSets.pm index eb15be6ce6..8c793b7561 100644 --- a/lib/NGCP/Panel/Controller/API/CFTimeSets.pm +++ b/lib/NGCP/Panel/Controller/API/CFTimeSets.pm @@ -78,11 +78,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/CFTimeSetsItem.pm b/lib/NGCP/Panel/Controller/API/CFTimeSetsItem.pm index 3db8e8c68a..d8688fe193 100644 --- a/lib/NGCP/Panel/Controller/API/CFTimeSetsItem.pm +++ b/lib/NGCP/Panel/Controller/API/CFTimeSetsItem.pm @@ -53,11 +53,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/CallControls.pm b/lib/NGCP/Panel/Controller/API/CallControls.pm index 308c8bb0a9..78df640011 100644 --- a/lib/NGCP/Panel/Controller/API/CallControls.pm +++ b/lib/NGCP/Panel/Controller/API/CallControls.pm @@ -55,11 +55,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/CallForwards.pm b/lib/NGCP/Panel/Controller/API/CallForwards.pm index b931104a45..a9fd7b2466 100644 --- a/lib/NGCP/Panel/Controller/API/CallForwards.pm +++ b/lib/NGCP/Panel/Controller/API/CallForwards.pm @@ -71,11 +71,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/CallForwardsItem.pm b/lib/NGCP/Panel/Controller/API/CallForwardsItem.pm index d39b17fc53..b54dfdf24b 100644 --- a/lib/NGCP/Panel/Controller/API/CallForwardsItem.pm +++ b/lib/NGCP/Panel/Controller/API/CallForwardsItem.pm @@ -53,11 +53,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/CallLists.pm b/lib/NGCP/Panel/Controller/API/CallLists.pm index d8dfc5d7f8..c23a2945d7 100644 --- a/lib/NGCP/Panel/Controller/API/CallLists.pm +++ b/lib/NGCP/Panel/Controller/API/CallLists.pm @@ -289,11 +289,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/CallListsItem.pm b/lib/NGCP/Panel/Controller/API/CallListsItem.pm index 56b80fa9de..cf147757b8 100644 --- a/lib/NGCP/Panel/Controller/API/CallListsItem.pm +++ b/lib/NGCP/Panel/Controller/API/CallListsItem.pm @@ -42,11 +42,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/CallRecordingFiles.pm b/lib/NGCP/Panel/Controller/API/CallRecordingFiles.pm index af96d4af39..088568d552 100644 --- a/lib/NGCP/Panel/Controller/API/CallRecordingFiles.pm +++ b/lib/NGCP/Panel/Controller/API/CallRecordingFiles.pm @@ -47,11 +47,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + 1; # vim: set tabstop=4 expandtab: diff --git a/lib/NGCP/Panel/Controller/API/CallRecordingFilesItem.pm b/lib/NGCP/Panel/Controller/API/CallRecordingFilesItem.pm index 0e0faf0e23..0b37c587d1 100644 --- a/lib/NGCP/Panel/Controller/API/CallRecordingFilesItem.pm +++ b/lib/NGCP/Panel/Controller/API/CallRecordingFilesItem.pm @@ -42,11 +42,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + sub GET :Allow { my ($self, $c, $id) = @_; { diff --git a/lib/NGCP/Panel/Controller/API/CallRecordingStreams.pm b/lib/NGCP/Panel/Controller/API/CallRecordingStreams.pm index 2c4c2d088a..412592b2ef 100644 --- a/lib/NGCP/Panel/Controller/API/CallRecordingStreams.pm +++ b/lib/NGCP/Panel/Controller/API/CallRecordingStreams.pm @@ -80,11 +80,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; diff --git a/lib/NGCP/Panel/Controller/API/CallRecordingStreamsItem.pm b/lib/NGCP/Panel/Controller/API/CallRecordingStreamsItem.pm index 097142f9bd..1296370639 100644 --- a/lib/NGCP/Panel/Controller/API/CallRecordingStreamsItem.pm +++ b/lib/NGCP/Panel/Controller/API/CallRecordingStreamsItem.pm @@ -43,11 +43,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + sub GET :Allow { my ($self, $c, $id) = @_; { diff --git a/lib/NGCP/Panel/Controller/API/CallRecordings.pm b/lib/NGCP/Panel/Controller/API/CallRecordings.pm index 17fd1fbe61..00e49bd275 100644 --- a/lib/NGCP/Panel/Controller/API/CallRecordings.pm +++ b/lib/NGCP/Panel/Controller/API/CallRecordings.pm @@ -87,11 +87,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; diff --git a/lib/NGCP/Panel/Controller/API/CallRecordingsItem.pm b/lib/NGCP/Panel/Controller/API/CallRecordingsItem.pm index df9a70dc6a..66a1dbc8fe 100644 --- a/lib/NGCP/Panel/Controller/API/CallRecordingsItem.pm +++ b/lib/NGCP/Panel/Controller/API/CallRecordingsItem.pm @@ -41,11 +41,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + sub GET :Allow { my ($self, $c, $id) = @_; { diff --git a/lib/NGCP/Panel/Controller/API/Calls.pm b/lib/NGCP/Panel/Controller/API/Calls.pm index b0609dc597..d69c6ac51d 100644 --- a/lib/NGCP/Panel/Controller/API/Calls.pm +++ b/lib/NGCP/Panel/Controller/API/Calls.pm @@ -88,11 +88,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/CallsItem.pm b/lib/NGCP/Panel/Controller/API/CallsItem.pm index 3188aee78a..3063eccd16 100644 --- a/lib/NGCP/Panel/Controller/API/CallsItem.pm +++ b/lib/NGCP/Panel/Controller/API/CallsItem.pm @@ -40,11 +40,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/Capabilities.pm b/lib/NGCP/Panel/Controller/API/Capabilities.pm index 22e069f458..753d25125e 100644 --- a/lib/NGCP/Panel/Controller/API/Capabilities.pm +++ b/lib/NGCP/Panel/Controller/API/Capabilities.pm @@ -59,11 +59,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; diff --git a/lib/NGCP/Panel/Controller/API/CapabilitiesItem.pm b/lib/NGCP/Panel/Controller/API/CapabilitiesItem.pm index 108ddcbe52..82c69e26c0 100644 --- a/lib/NGCP/Panel/Controller/API/CapabilitiesItem.pm +++ b/lib/NGCP/Panel/Controller/API/CapabilitiesItem.pm @@ -42,11 +42,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + sub GET :Allow { my ($self, $c, $id) = @_; { diff --git a/lib/NGCP/Panel/Controller/API/Contracts.pm b/lib/NGCP/Panel/Controller/API/Contracts.pm index 0e638fa2df..dd454b166f 100644 --- a/lib/NGCP/Panel/Controller/API/Contracts.pm +++ b/lib/NGCP/Panel/Controller/API/Contracts.pm @@ -88,11 +88,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; diff --git a/lib/NGCP/Panel/Controller/API/ContractsItem.pm b/lib/NGCP/Panel/Controller/API/ContractsItem.pm index d3a6bf01e9..873d0dc439 100644 --- a/lib/NGCP/Panel/Controller/API/ContractsItem.pm +++ b/lib/NGCP/Panel/Controller/API/ContractsItem.pm @@ -55,11 +55,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + sub GET :Allow { my ($self, $c, $id) = @_; $c->model('DB')->set_transaction_isolation('READ COMMITTED'); diff --git a/lib/NGCP/Panel/Controller/API/CustomerBalances.pm b/lib/NGCP/Panel/Controller/API/CustomerBalances.pm index 5dd508758c..1a1bac3882 100644 --- a/lib/NGCP/Panel/Controller/API/CustomerBalances.pm +++ b/lib/NGCP/Panel/Controller/API/CustomerBalances.pm @@ -131,11 +131,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; diff --git a/lib/NGCP/Panel/Controller/API/CustomerBalancesItem.pm b/lib/NGCP/Panel/Controller/API/CustomerBalancesItem.pm index 3238006a7f..7359166674 100644 --- a/lib/NGCP/Panel/Controller/API/CustomerBalancesItem.pm +++ b/lib/NGCP/Panel/Controller/API/CustomerBalancesItem.pm @@ -51,11 +51,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + sub GET :Allow { my ($self, $c, $id) = @_; $c->model('DB')->set_transaction_isolation('READ COMMITTED'); diff --git a/lib/NGCP/Panel/Controller/API/CustomerContacts.pm b/lib/NGCP/Panel/Controller/API/CustomerContacts.pm index 4691f4bbe0..bdf11fe7d0 100644 --- a/lib/NGCP/Panel/Controller/API/CustomerContacts.pm +++ b/lib/NGCP/Panel/Controller/API/CustomerContacts.pm @@ -75,11 +75,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/CustomerContactsItem.pm b/lib/NGCP/Panel/Controller/API/CustomerContactsItem.pm index adf7821cf2..cec1c6fb09 100644 --- a/lib/NGCP/Panel/Controller/API/CustomerContactsItem.pm +++ b/lib/NGCP/Panel/Controller/API/CustomerContactsItem.pm @@ -51,11 +51,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/CustomerFraudEvents.pm b/lib/NGCP/Panel/Controller/API/CustomerFraudEvents.pm index 49dd4fa4af..a66943655c 100644 --- a/lib/NGCP/Panel/Controller/API/CustomerFraudEvents.pm +++ b/lib/NGCP/Panel/Controller/API/CustomerFraudEvents.pm @@ -67,11 +67,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/CustomerFraudEventsItem.pm b/lib/NGCP/Panel/Controller/API/CustomerFraudEventsItem.pm index 43c2f8fa33..fa99170af1 100644 --- a/lib/NGCP/Panel/Controller/API/CustomerFraudEventsItem.pm +++ b/lib/NGCP/Panel/Controller/API/CustomerFraudEventsItem.pm @@ -48,11 +48,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/CustomerFraudPreferences.pm b/lib/NGCP/Panel/Controller/API/CustomerFraudPreferences.pm index 43d8a35a90..e0096543e5 100644 --- a/lib/NGCP/Panel/Controller/API/CustomerFraudPreferences.pm +++ b/lib/NGCP/Panel/Controller/API/CustomerFraudPreferences.pm @@ -90,11 +90,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; diff --git a/lib/NGCP/Panel/Controller/API/CustomerFraudPreferencesItem.pm b/lib/NGCP/Panel/Controller/API/CustomerFraudPreferencesItem.pm index 1cfde6f7d0..ae014ba1d7 100644 --- a/lib/NGCP/Panel/Controller/API/CustomerFraudPreferencesItem.pm +++ b/lib/NGCP/Panel/Controller/API/CustomerFraudPreferencesItem.pm @@ -50,11 +50,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + sub GET :Allow { my ($self, $c, $id) = @_; { diff --git a/lib/NGCP/Panel/Controller/API/CustomerLocations.pm b/lib/NGCP/Panel/Controller/API/CustomerLocations.pm index 46e64384c8..81ef7330d1 100644 --- a/lib/NGCP/Panel/Controller/API/CustomerLocations.pm +++ b/lib/NGCP/Panel/Controller/API/CustomerLocations.pm @@ -77,11 +77,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/CustomerLocationsItem.pm b/lib/NGCP/Panel/Controller/API/CustomerLocationsItem.pm index 093fa376f5..bd3a04a920 100644 --- a/lib/NGCP/Panel/Controller/API/CustomerLocationsItem.pm +++ b/lib/NGCP/Panel/Controller/API/CustomerLocationsItem.pm @@ -54,11 +54,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/CustomerPreferenceDefs.pm b/lib/NGCP/Panel/Controller/API/CustomerPreferenceDefs.pm index 8de8770553..c934457628 100644 --- a/lib/NGCP/Panel/Controller/API/CustomerPreferenceDefs.pm +++ b/lib/NGCP/Panel/Controller/API/CustomerPreferenceDefs.pm @@ -45,11 +45,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/CustomerPreferences.pm b/lib/NGCP/Panel/Controller/API/CustomerPreferences.pm index d559665fc2..60e4b2cde8 100644 --- a/lib/NGCP/Panel/Controller/API/CustomerPreferences.pm +++ b/lib/NGCP/Panel/Controller/API/CustomerPreferences.pm @@ -65,11 +65,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/CustomerPreferencesItem.pm b/lib/NGCP/Panel/Controller/API/CustomerPreferencesItem.pm index aaff825e17..f89540c29e 100644 --- a/lib/NGCP/Panel/Controller/API/CustomerPreferencesItem.pm +++ b/lib/NGCP/Panel/Controller/API/CustomerPreferencesItem.pm @@ -53,11 +53,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/CustomerZoneCosts.pm b/lib/NGCP/Panel/Controller/API/CustomerZoneCosts.pm index f69cdb2564..803360ab14 100644 --- a/lib/NGCP/Panel/Controller/API/CustomerZoneCosts.pm +++ b/lib/NGCP/Panel/Controller/API/CustomerZoneCosts.pm @@ -74,11 +74,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/CustomerZoneCostsItem.pm b/lib/NGCP/Panel/Controller/API/CustomerZoneCostsItem.pm index 5d02d6716c..fb3a02454a 100644 --- a/lib/NGCP/Panel/Controller/API/CustomerZoneCostsItem.pm +++ b/lib/NGCP/Panel/Controller/API/CustomerZoneCostsItem.pm @@ -43,11 +43,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/Customers.pm b/lib/NGCP/Panel/Controller/API/Customers.pm index 1c72d21bb6..3881d5d6d8 100644 --- a/lib/NGCP/Panel/Controller/API/Customers.pm +++ b/lib/NGCP/Panel/Controller/API/Customers.pm @@ -160,11 +160,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; diff --git a/lib/NGCP/Panel/Controller/API/CustomersItem.pm b/lib/NGCP/Panel/Controller/API/CustomersItem.pm index 7549aaa2d4..1d7b1b90f7 100644 --- a/lib/NGCP/Panel/Controller/API/CustomersItem.pm +++ b/lib/NGCP/Panel/Controller/API/CustomersItem.pm @@ -55,11 +55,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + sub GET :Allow { my ($self, $c, $id) = @_; $c->model('DB')->set_transaction_isolation('READ COMMITTED'); diff --git a/lib/NGCP/Panel/Controller/API/DomainPreferenceDefs.pm b/lib/NGCP/Panel/Controller/API/DomainPreferenceDefs.pm index e9b3935b9e..2f51217d8c 100644 --- a/lib/NGCP/Panel/Controller/API/DomainPreferenceDefs.pm +++ b/lib/NGCP/Panel/Controller/API/DomainPreferenceDefs.pm @@ -45,11 +45,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/DomainPreferences.pm b/lib/NGCP/Panel/Controller/API/DomainPreferences.pm index 80fc79d6db..802cb485a2 100644 --- a/lib/NGCP/Panel/Controller/API/DomainPreferences.pm +++ b/lib/NGCP/Panel/Controller/API/DomainPreferences.pm @@ -56,11 +56,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/DomainPreferencesItem.pm b/lib/NGCP/Panel/Controller/API/DomainPreferencesItem.pm index 4ac928f508..67ce5a9bc3 100644 --- a/lib/NGCP/Panel/Controller/API/DomainPreferencesItem.pm +++ b/lib/NGCP/Panel/Controller/API/DomainPreferencesItem.pm @@ -43,11 +43,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/Domains.pm b/lib/NGCP/Panel/Controller/API/Domains.pm index ff71748ae2..ee52fea3ca 100644 --- a/lib/NGCP/Panel/Controller/API/Domains.pm +++ b/lib/NGCP/Panel/Controller/API/Domains.pm @@ -77,11 +77,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/DomainsItem.pm b/lib/NGCP/Panel/Controller/API/DomainsItem.pm index 2943422fa6..6894db397c 100644 --- a/lib/NGCP/Panel/Controller/API/DomainsItem.pm +++ b/lib/NGCP/Panel/Controller/API/DomainsItem.pm @@ -54,11 +54,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/EmailTemplates.pm b/lib/NGCP/Panel/Controller/API/EmailTemplates.pm index 6b217b1928..245457d233 100644 --- a/lib/NGCP/Panel/Controller/API/EmailTemplates.pm +++ b/lib/NGCP/Panel/Controller/API/EmailTemplates.pm @@ -74,11 +74,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/EmailTemplatesItem.pm b/lib/NGCP/Panel/Controller/API/EmailTemplatesItem.pm index 9da18cecf6..c5d2946c47 100644 --- a/lib/NGCP/Panel/Controller/API/EmailTemplatesItem.pm +++ b/lib/NGCP/Panel/Controller/API/EmailTemplatesItem.pm @@ -40,11 +40,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/EmergencyMappingContainers.pm b/lib/NGCP/Panel/Controller/API/EmergencyMappingContainers.pm index 2003e0a280..0b1fcf7383 100644 --- a/lib/NGCP/Panel/Controller/API/EmergencyMappingContainers.pm +++ b/lib/NGCP/Panel/Controller/API/EmergencyMappingContainers.pm @@ -75,11 +75,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/EmergencyMappingContainersItem.pm b/lib/NGCP/Panel/Controller/API/EmergencyMappingContainersItem.pm index fed94dfdfb..a639957c34 100644 --- a/lib/NGCP/Panel/Controller/API/EmergencyMappingContainersItem.pm +++ b/lib/NGCP/Panel/Controller/API/EmergencyMappingContainersItem.pm @@ -41,11 +41,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/EmergencyMappings.pm b/lib/NGCP/Panel/Controller/API/EmergencyMappings.pm index 302b39ab92..25536d1180 100644 --- a/lib/NGCP/Panel/Controller/API/EmergencyMappings.pm +++ b/lib/NGCP/Panel/Controller/API/EmergencyMappings.pm @@ -93,11 +93,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/EmergencyMappingsItem.pm b/lib/NGCP/Panel/Controller/API/EmergencyMappingsItem.pm index ac66d2e124..a599c60507 100644 --- a/lib/NGCP/Panel/Controller/API/EmergencyMappingsItem.pm +++ b/lib/NGCP/Panel/Controller/API/EmergencyMappingsItem.pm @@ -40,11 +40,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/Events.pm b/lib/NGCP/Panel/Controller/API/Events.pm index 555e2918fd..8f15ae4cb9 100644 --- a/lib/NGCP/Panel/Controller/API/Events.pm +++ b/lib/NGCP/Panel/Controller/API/Events.pm @@ -110,11 +110,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; diff --git a/lib/NGCP/Panel/Controller/API/EventsItem.pm b/lib/NGCP/Panel/Controller/API/EventsItem.pm index 13034a9945..85a37a2fb4 100644 --- a/lib/NGCP/Panel/Controller/API/EventsItem.pm +++ b/lib/NGCP/Panel/Controller/API/EventsItem.pm @@ -40,11 +40,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + sub GET :Allow { my ($self, $c, $id) = @_; { diff --git a/lib/NGCP/Panel/Controller/API/FaxRecordings.pm b/lib/NGCP/Panel/Controller/API/FaxRecordings.pm index 9df236df8b..5758278d6f 100644 --- a/lib/NGCP/Panel/Controller/API/FaxRecordings.pm +++ b/lib/NGCP/Panel/Controller/API/FaxRecordings.pm @@ -47,11 +47,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + 1; diff --git a/lib/NGCP/Panel/Controller/API/FaxRecordingsItem.pm b/lib/NGCP/Panel/Controller/API/FaxRecordingsItem.pm index 34b1b1bb5b..02d85b6375 100644 --- a/lib/NGCP/Panel/Controller/API/FaxRecordingsItem.pm +++ b/lib/NGCP/Panel/Controller/API/FaxRecordingsItem.pm @@ -43,11 +43,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/Faxes.pm b/lib/NGCP/Panel/Controller/API/Faxes.pm index 9129220d99..07924ef487 100644 --- a/lib/NGCP/Panel/Controller/API/Faxes.pm +++ b/lib/NGCP/Panel/Controller/API/Faxes.pm @@ -115,11 +115,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/FaxesItem.pm b/lib/NGCP/Panel/Controller/API/FaxesItem.pm index 0102b6668d..7f1a0c82e7 100644 --- a/lib/NGCP/Panel/Controller/API/FaxesItem.pm +++ b/lib/NGCP/Panel/Controller/API/FaxesItem.pm @@ -41,11 +41,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/FaxserverSettings.pm b/lib/NGCP/Panel/Controller/API/FaxserverSettings.pm index 2e2af3dad2..9089f947b4 100644 --- a/lib/NGCP/Panel/Controller/API/FaxserverSettings.pm +++ b/lib/NGCP/Panel/Controller/API/FaxserverSettings.pm @@ -85,11 +85,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/FaxserverSettingsItem.pm b/lib/NGCP/Panel/Controller/API/FaxserverSettingsItem.pm index f6c64ad6ff..0140690ba5 100644 --- a/lib/NGCP/Panel/Controller/API/FaxserverSettingsItem.pm +++ b/lib/NGCP/Panel/Controller/API/FaxserverSettingsItem.pm @@ -54,11 +54,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/Interceptions.pm b/lib/NGCP/Panel/Controller/API/Interceptions.pm index f381a76161..a0b74485ae 100644 --- a/lib/NGCP/Panel/Controller/API/Interceptions.pm +++ b/lib/NGCP/Panel/Controller/API/Interceptions.pm @@ -75,11 +75,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + sub auto :Private { my ($self, $c) = @_; diff --git a/lib/NGCP/Panel/Controller/API/InterceptionsItem.pm b/lib/NGCP/Panel/Controller/API/InterceptionsItem.pm index 9625123812..934d3a01a3 100644 --- a/lib/NGCP/Panel/Controller/API/InterceptionsItem.pm +++ b/lib/NGCP/Panel/Controller/API/InterceptionsItem.pm @@ -41,11 +41,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + sub auto :Private { my ($self, $c) = @_; diff --git a/lib/NGCP/Panel/Controller/API/InvoiceTemplates.pm b/lib/NGCP/Panel/Controller/API/InvoiceTemplates.pm index ffc3f048cc..ff177a5e17 100644 --- a/lib/NGCP/Panel/Controller/API/InvoiceTemplates.pm +++ b/lib/NGCP/Panel/Controller/API/InvoiceTemplates.pm @@ -74,11 +74,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/InvoiceTemplatesItem.pm b/lib/NGCP/Panel/Controller/API/InvoiceTemplatesItem.pm index 7c118bebe2..9948d0aef9 100644 --- a/lib/NGCP/Panel/Controller/API/InvoiceTemplatesItem.pm +++ b/lib/NGCP/Panel/Controller/API/InvoiceTemplatesItem.pm @@ -40,11 +40,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/LnpCarriers.pm b/lib/NGCP/Panel/Controller/API/LnpCarriers.pm index 1815c4c30c..af03cfe8a7 100644 --- a/lib/NGCP/Panel/Controller/API/LnpCarriers.pm +++ b/lib/NGCP/Panel/Controller/API/LnpCarriers.pm @@ -75,11 +75,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/LnpCarriersItem.pm b/lib/NGCP/Panel/Controller/API/LnpCarriersItem.pm index 7bc335d7f4..8e2888e043 100644 --- a/lib/NGCP/Panel/Controller/API/LnpCarriersItem.pm +++ b/lib/NGCP/Panel/Controller/API/LnpCarriersItem.pm @@ -40,11 +40,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/LnpNumbers.pm b/lib/NGCP/Panel/Controller/API/LnpNumbers.pm index 9c367cd7ee..9cc5aa3c1a 100644 --- a/lib/NGCP/Panel/Controller/API/LnpNumbers.pm +++ b/lib/NGCP/Panel/Controller/API/LnpNumbers.pm @@ -84,11 +84,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/LnpNumbersItem.pm b/lib/NGCP/Panel/Controller/API/LnpNumbersItem.pm index b0b7b4a810..65b6a98342 100644 --- a/lib/NGCP/Panel/Controller/API/LnpNumbersItem.pm +++ b/lib/NGCP/Panel/Controller/API/LnpNumbersItem.pm @@ -40,11 +40,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/MailToFaxSettings.pm b/lib/NGCP/Panel/Controller/API/MailToFaxSettings.pm index 612e14c981..43ccb59431 100644 --- a/lib/NGCP/Panel/Controller/API/MailToFaxSettings.pm +++ b/lib/NGCP/Panel/Controller/API/MailToFaxSettings.pm @@ -85,11 +85,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/MailToFaxSettingsItem.pm b/lib/NGCP/Panel/Controller/API/MailToFaxSettingsItem.pm index 0619cfb1b3..ba3d161558 100644 --- a/lib/NGCP/Panel/Controller/API/MailToFaxSettingsItem.pm +++ b/lib/NGCP/Panel/Controller/API/MailToFaxSettingsItem.pm @@ -51,11 +51,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/MaliciousCalls.pm b/lib/NGCP/Panel/Controller/API/MaliciousCalls.pm index 3312335bf2..6ad6567bd2 100644 --- a/lib/NGCP/Panel/Controller/API/MaliciousCalls.pm +++ b/lib/NGCP/Panel/Controller/API/MaliciousCalls.pm @@ -132,11 +132,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/MaliciousCallsItem.pm b/lib/NGCP/Panel/Controller/API/MaliciousCallsItem.pm index 8ade192c83..edb4921bba 100644 --- a/lib/NGCP/Panel/Controller/API/MaliciousCallsItem.pm +++ b/lib/NGCP/Panel/Controller/API/MaliciousCallsItem.pm @@ -40,11 +40,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/ManagerSecretary.pm b/lib/NGCP/Panel/Controller/API/ManagerSecretary.pm index 03a2b9e020..c1c906d2c7 100644 --- a/lib/NGCP/Panel/Controller/API/ManagerSecretary.pm +++ b/lib/NGCP/Panel/Controller/API/ManagerSecretary.pm @@ -58,11 +58,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; diff --git a/lib/NGCP/Panel/Controller/API/ManagerSecretaryItem.pm b/lib/NGCP/Panel/Controller/API/ManagerSecretaryItem.pm index 8eb55b35d4..8832c6dc05 100644 --- a/lib/NGCP/Panel/Controller/API/ManagerSecretaryItem.pm +++ b/lib/NGCP/Panel/Controller/API/ManagerSecretaryItem.pm @@ -53,11 +53,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + sub GET :Allow { my ($self, $c, $id) = @_; { diff --git a/lib/NGCP/Panel/Controller/API/MetaConfigDefs.pm b/lib/NGCP/Panel/Controller/API/MetaConfigDefs.pm index f2a89c9e3c..8b9a6cdce3 100644 --- a/lib/NGCP/Panel/Controller/API/MetaConfigDefs.pm +++ b/lib/NGCP/Panel/Controller/API/MetaConfigDefs.pm @@ -43,11 +43,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/NcosLevels.pm b/lib/NGCP/Panel/Controller/API/NcosLevels.pm index 37c63b20e8..71ff14b670 100644 --- a/lib/NGCP/Panel/Controller/API/NcosLevels.pm +++ b/lib/NGCP/Panel/Controller/API/NcosLevels.pm @@ -74,11 +74,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/NcosLevelsItem.pm b/lib/NGCP/Panel/Controller/API/NcosLevelsItem.pm index 84827dbf09..70646aea93 100644 --- a/lib/NGCP/Panel/Controller/API/NcosLevelsItem.pm +++ b/lib/NGCP/Panel/Controller/API/NcosLevelsItem.pm @@ -40,11 +40,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/NcosLnpCarriers.pm b/lib/NGCP/Panel/Controller/API/NcosLnpCarriers.pm index fb9f0279ea..7955b2ffc8 100644 --- a/lib/NGCP/Panel/Controller/API/NcosLnpCarriers.pm +++ b/lib/NGCP/Panel/Controller/API/NcosLnpCarriers.pm @@ -74,11 +74,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/NcosLnpCarriersItem.pm b/lib/NGCP/Panel/Controller/API/NcosLnpCarriersItem.pm index d131220d66..479499ef74 100644 --- a/lib/NGCP/Panel/Controller/API/NcosLnpCarriersItem.pm +++ b/lib/NGCP/Panel/Controller/API/NcosLnpCarriersItem.pm @@ -40,11 +40,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/NcosPatterns.pm b/lib/NGCP/Panel/Controller/API/NcosPatterns.pm index 18f7cdef9f..a2687cf613 100644 --- a/lib/NGCP/Panel/Controller/API/NcosPatterns.pm +++ b/lib/NGCP/Panel/Controller/API/NcosPatterns.pm @@ -63,11 +63,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/NcosPatternsItem.pm b/lib/NGCP/Panel/Controller/API/NcosPatternsItem.pm index d303517793..fcc28cd3a9 100644 --- a/lib/NGCP/Panel/Controller/API/NcosPatternsItem.pm +++ b/lib/NGCP/Panel/Controller/API/NcosPatternsItem.pm @@ -40,11 +40,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/Numbers.pm b/lib/NGCP/Panel/Controller/API/Numbers.pm index 480d24a4db..007376bc59 100644 --- a/lib/NGCP/Panel/Controller/API/Numbers.pm +++ b/lib/NGCP/Panel/Controller/API/Numbers.pm @@ -99,11 +99,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + sub GET :Allow { my ($self, $c) = @_; my $page = $c->request->params->{page} // 1; diff --git a/lib/NGCP/Panel/Controller/API/NumbersItem.pm b/lib/NGCP/Panel/Controller/API/NumbersItem.pm index f32476218d..52e5f69303 100644 --- a/lib/NGCP/Panel/Controller/API/NumbersItem.pm +++ b/lib/NGCP/Panel/Controller/API/NumbersItem.pm @@ -56,11 +56,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + sub GET :Allow { my ($self, $c, $id) = @_; { diff --git a/lib/NGCP/Panel/Controller/API/PartyCallControls.pm b/lib/NGCP/Panel/Controller/API/PartyCallControls.pm index 127c3dbb14..3a3bc32419 100644 --- a/lib/NGCP/Panel/Controller/API/PartyCallControls.pm +++ b/lib/NGCP/Panel/Controller/API/PartyCallControls.pm @@ -56,11 +56,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + sub POST :Allow { my ($self, $c) = @_; diff --git a/lib/NGCP/Panel/Controller/API/PbxDeviceConfigFiles.pm b/lib/NGCP/Panel/Controller/API/PbxDeviceConfigFiles.pm index 47a3ad1fad..c29c73d63e 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDeviceConfigFiles.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDeviceConfigFiles.pm @@ -52,11 +52,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + sub auto :Private { my ($self, $c) = @_; diff --git a/lib/NGCP/Panel/Controller/API/PbxDeviceConfigFilesItem.pm b/lib/NGCP/Panel/Controller/API/PbxDeviceConfigFilesItem.pm index 55c992b3f9..4e942653f4 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDeviceConfigFilesItem.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDeviceConfigFilesItem.pm @@ -40,11 +40,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/PbxDeviceConfigs.pm b/lib/NGCP/Panel/Controller/API/PbxDeviceConfigs.pm index 3f2d3d970e..871bf86eac 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDeviceConfigs.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDeviceConfigs.pm @@ -85,11 +85,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/PbxDeviceConfigsItem.pm b/lib/NGCP/Panel/Controller/API/PbxDeviceConfigsItem.pm index f8b122fc1b..fccbb55404 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDeviceConfigsItem.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDeviceConfigsItem.pm @@ -40,11 +40,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwareBinaries.pm b/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwareBinaries.pm index 12a8c3d5f0..7dfe81b98d 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwareBinaries.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwareBinaries.pm @@ -52,11 +52,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + sub auto :Private { my ($self, $c) = @_; diff --git a/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwareBinariesItem.pm b/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwareBinariesItem.pm index 5c927e6ed6..3be081db5e 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwareBinariesItem.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwareBinariesItem.pm @@ -41,11 +41,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwares.pm b/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwares.pm index 8b24577c3f..774fd009d0 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwares.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwares.pm @@ -86,11 +86,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwaresItem.pm b/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwaresItem.pm index 09b47b8949..e37d56a9f5 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwaresItem.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDeviceFirmwaresItem.pm @@ -40,11 +40,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/PbxDevicePreferenceDefs.pm b/lib/NGCP/Panel/Controller/API/PbxDevicePreferenceDefs.pm index 98730384dc..b4a0f01b9f 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDevicePreferenceDefs.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDevicePreferenceDefs.pm @@ -45,11 +45,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/PbxDevicePreferences.pm b/lib/NGCP/Panel/Controller/API/PbxDevicePreferences.pm index bafe955653..ab13173ebe 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDevicePreferences.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDevicePreferences.pm @@ -47,11 +47,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/PbxDevicePreferencesItem.pm b/lib/NGCP/Panel/Controller/API/PbxDevicePreferencesItem.pm index 418c47b3d2..f9aaa485b6 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDevicePreferencesItem.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDevicePreferencesItem.pm @@ -53,11 +53,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/PbxDeviceProfilePreferenceDefs.pm b/lib/NGCP/Panel/Controller/API/PbxDeviceProfilePreferenceDefs.pm index ac55669830..57e407f4c7 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDeviceProfilePreferenceDefs.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDeviceProfilePreferenceDefs.pm @@ -45,11 +45,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/PbxDeviceProfilePreferences.pm b/lib/NGCP/Panel/Controller/API/PbxDeviceProfilePreferences.pm index b9823900ae..542f84497b 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDeviceProfilePreferences.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDeviceProfilePreferences.pm @@ -47,11 +47,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/PbxDeviceProfilePreferencesItem.pm b/lib/NGCP/Panel/Controller/API/PbxDeviceProfilePreferencesItem.pm index 8708509503..5ee3e54fd5 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDeviceProfilePreferencesItem.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDeviceProfilePreferencesItem.pm @@ -53,11 +53,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/PbxDeviceProfiles.pm b/lib/NGCP/Panel/Controller/API/PbxDeviceProfiles.pm index 1f78b5d2cf..f22166bb7c 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDeviceProfiles.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDeviceProfiles.pm @@ -75,11 +75,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/PbxDeviceProfilesItem.pm b/lib/NGCP/Panel/Controller/API/PbxDeviceProfilesItem.pm index f085fda96e..a0bfff5866 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDeviceProfilesItem.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDeviceProfilesItem.pm @@ -43,11 +43,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/PbxDevices.pm b/lib/NGCP/Panel/Controller/API/PbxDevices.pm index 45677c5395..adfa94c569 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDevices.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDevices.pm @@ -87,11 +87,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/PbxDevicesItem.pm b/lib/NGCP/Panel/Controller/API/PbxDevicesItem.pm index ba60dc28cd..c062e0d3da 100644 --- a/lib/NGCP/Panel/Controller/API/PbxDevicesItem.pm +++ b/lib/NGCP/Panel/Controller/API/PbxDevicesItem.pm @@ -43,11 +43,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/PeeringGroups.pm b/lib/NGCP/Panel/Controller/API/PeeringGroups.pm index 7c2f3c4005..7db4e07313 100644 --- a/lib/NGCP/Panel/Controller/API/PeeringGroups.pm +++ b/lib/NGCP/Panel/Controller/API/PeeringGroups.pm @@ -64,11 +64,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/PeeringGroupsItem.pm b/lib/NGCP/Panel/Controller/API/PeeringGroupsItem.pm index 98feea244f..21203d31dd 100644 --- a/lib/NGCP/Panel/Controller/API/PeeringGroupsItem.pm +++ b/lib/NGCP/Panel/Controller/API/PeeringGroupsItem.pm @@ -30,11 +30,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/PeeringInboundRules.pm b/lib/NGCP/Panel/Controller/API/PeeringInboundRules.pm index 8ef241206e..d8591bdba7 100644 --- a/lib/NGCP/Panel/Controller/API/PeeringInboundRules.pm +++ b/lib/NGCP/Panel/Controller/API/PeeringInboundRules.pm @@ -86,11 +86,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/PeeringInboundRulesItem.pm b/lib/NGCP/Panel/Controller/API/PeeringInboundRulesItem.pm index 3c68ed6501..568b0c3b9e 100644 --- a/lib/NGCP/Panel/Controller/API/PeeringInboundRulesItem.pm +++ b/lib/NGCP/Panel/Controller/API/PeeringInboundRulesItem.pm @@ -40,11 +40,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/PeeringRules.pm b/lib/NGCP/Panel/Controller/API/PeeringRules.pm index fab585a966..04aaa3a05a 100644 --- a/lib/NGCP/Panel/Controller/API/PeeringRules.pm +++ b/lib/NGCP/Panel/Controller/API/PeeringRules.pm @@ -86,11 +86,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/PeeringRulesItem.pm b/lib/NGCP/Panel/Controller/API/PeeringRulesItem.pm index bc28f57482..deb5365b7f 100644 --- a/lib/NGCP/Panel/Controller/API/PeeringRulesItem.pm +++ b/lib/NGCP/Panel/Controller/API/PeeringRulesItem.pm @@ -40,11 +40,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/PeeringServerPreferenceDefs.pm b/lib/NGCP/Panel/Controller/API/PeeringServerPreferenceDefs.pm index f0251ee933..49b9308e87 100644 --- a/lib/NGCP/Panel/Controller/API/PeeringServerPreferenceDefs.pm +++ b/lib/NGCP/Panel/Controller/API/PeeringServerPreferenceDefs.pm @@ -45,11 +45,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/PeeringServerPreferences.pm b/lib/NGCP/Panel/Controller/API/PeeringServerPreferences.pm index 224d351b8c..9302a15d2b 100644 --- a/lib/NGCP/Panel/Controller/API/PeeringServerPreferences.pm +++ b/lib/NGCP/Panel/Controller/API/PeeringServerPreferences.pm @@ -55,11 +55,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/PeeringServerPreferencesItem.pm b/lib/NGCP/Panel/Controller/API/PeeringServerPreferencesItem.pm index aa5451222a..9906b16bca 100644 --- a/lib/NGCP/Panel/Controller/API/PeeringServerPreferencesItem.pm +++ b/lib/NGCP/Panel/Controller/API/PeeringServerPreferencesItem.pm @@ -53,11 +53,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/PeeringServers.pm b/lib/NGCP/Panel/Controller/API/PeeringServers.pm index f44403a571..c8aba8814f 100644 --- a/lib/NGCP/Panel/Controller/API/PeeringServers.pm +++ b/lib/NGCP/Panel/Controller/API/PeeringServers.pm @@ -107,11 +107,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/PeeringServersItem.pm b/lib/NGCP/Panel/Controller/API/PeeringServersItem.pm index 1c6582d7b8..b9fdc323ca 100644 --- a/lib/NGCP/Panel/Controller/API/PeeringServersItem.pm +++ b/lib/NGCP/Panel/Controller/API/PeeringServersItem.pm @@ -40,11 +40,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/ProfilePackages.pm b/lib/NGCP/Panel/Controller/API/ProfilePackages.pm index f5c00b9c61..257e2e55f9 100644 --- a/lib/NGCP/Panel/Controller/API/ProfilePackages.pm +++ b/lib/NGCP/Panel/Controller/API/ProfilePackages.pm @@ -103,11 +103,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/ProfilePackagesItem.pm b/lib/NGCP/Panel/Controller/API/ProfilePackagesItem.pm index f4334dd68f..8cb045d794 100644 --- a/lib/NGCP/Panel/Controller/API/ProfilePackagesItem.pm +++ b/lib/NGCP/Panel/Controller/API/ProfilePackagesItem.pm @@ -50,11 +50,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/ProfilePreferenceDefs.pm b/lib/NGCP/Panel/Controller/API/ProfilePreferenceDefs.pm index b0bf718963..cb93244f31 100644 --- a/lib/NGCP/Panel/Controller/API/ProfilePreferenceDefs.pm +++ b/lib/NGCP/Panel/Controller/API/ProfilePreferenceDefs.pm @@ -45,11 +45,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/ProfilePreferences.pm b/lib/NGCP/Panel/Controller/API/ProfilePreferences.pm index 8d2e88cf9d..5553661d15 100644 --- a/lib/NGCP/Panel/Controller/API/ProfilePreferences.pm +++ b/lib/NGCP/Panel/Controller/API/ProfilePreferences.pm @@ -47,11 +47,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/ProfilePreferencesItem.pm b/lib/NGCP/Panel/Controller/API/ProfilePreferencesItem.pm index f46292ed34..ebd7155c0b 100644 --- a/lib/NGCP/Panel/Controller/API/ProfilePreferencesItem.pm +++ b/lib/NGCP/Panel/Controller/API/ProfilePreferencesItem.pm @@ -53,11 +53,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/Reminders.pm b/lib/NGCP/Panel/Controller/API/Reminders.pm index 05bb424e22..1f2a5a38cc 100644 --- a/lib/NGCP/Panel/Controller/API/Reminders.pm +++ b/lib/NGCP/Panel/Controller/API/Reminders.pm @@ -80,11 +80,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + sub GET :Allow { my ($self, $c) = @_; diff --git a/lib/NGCP/Panel/Controller/API/RemindersItem.pm b/lib/NGCP/Panel/Controller/API/RemindersItem.pm index fefb117911..f8977f1c0c 100644 --- a/lib/NGCP/Panel/Controller/API/RemindersItem.pm +++ b/lib/NGCP/Panel/Controller/API/RemindersItem.pm @@ -50,11 +50,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + sub GET :Allow { my ($self, $c, $id) = @_; diff --git a/lib/NGCP/Panel/Controller/API/Resellers.pm b/lib/NGCP/Panel/Controller/API/Resellers.pm index 55a82ae360..814a178795 100644 --- a/lib/NGCP/Panel/Controller/API/Resellers.pm +++ b/lib/NGCP/Panel/Controller/API/Resellers.pm @@ -66,11 +66,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/ResellersItem.pm b/lib/NGCP/Panel/Controller/API/ResellersItem.pm index ea583b6268..e401fcb225 100644 --- a/lib/NGCP/Panel/Controller/API/ResellersItem.pm +++ b/lib/NGCP/Panel/Controller/API/ResellersItem.pm @@ -51,11 +51,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/RtcApps.pm b/lib/NGCP/Panel/Controller/API/RtcApps.pm index b2f7748833..32c05ce213 100644 --- a/lib/NGCP/Panel/Controller/API/RtcApps.pm +++ b/lib/NGCP/Panel/Controller/API/RtcApps.pm @@ -51,11 +51,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/RtcAppsItem.pm b/lib/NGCP/Panel/Controller/API/RtcAppsItem.pm index f6ce02f890..5367d2aa49 100644 --- a/lib/NGCP/Panel/Controller/API/RtcAppsItem.pm +++ b/lib/NGCP/Panel/Controller/API/RtcAppsItem.pm @@ -48,11 +48,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/RtcNetworks.pm b/lib/NGCP/Panel/Controller/API/RtcNetworks.pm index 4597af17bb..adc62888fb 100644 --- a/lib/NGCP/Panel/Controller/API/RtcNetworks.pm +++ b/lib/NGCP/Panel/Controller/API/RtcNetworks.pm @@ -51,11 +51,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/RtcNetworksItem.pm b/lib/NGCP/Panel/Controller/API/RtcNetworksItem.pm index 45773c4d19..6970f30f0f 100644 --- a/lib/NGCP/Panel/Controller/API/RtcNetworksItem.pm +++ b/lib/NGCP/Panel/Controller/API/RtcNetworksItem.pm @@ -48,11 +48,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/RtcSessions.pm b/lib/NGCP/Panel/Controller/API/RtcSessions.pm index fa254a46b6..08afcf35bd 100644 --- a/lib/NGCP/Panel/Controller/API/RtcSessions.pm +++ b/lib/NGCP/Panel/Controller/API/RtcSessions.pm @@ -53,11 +53,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/RtcSessionsItem.pm b/lib/NGCP/Panel/Controller/API/RtcSessionsItem.pm index 2d29394adf..ecb8cf3917 100644 --- a/lib/NGCP/Panel/Controller/API/RtcSessionsItem.pm +++ b/lib/NGCP/Panel/Controller/API/RtcSessionsItem.pm @@ -56,11 +56,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/SoundFileRecordings.pm b/lib/NGCP/Panel/Controller/API/SoundFileRecordings.pm index 55be3f60c0..45f57bd39c 100644 --- a/lib/NGCP/Panel/Controller/API/SoundFileRecordings.pm +++ b/lib/NGCP/Panel/Controller/API/SoundFileRecordings.pm @@ -52,11 +52,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + sub auto :Private { my ($self, $c) = @_; diff --git a/lib/NGCP/Panel/Controller/API/SoundFileRecordingsItem.pm b/lib/NGCP/Panel/Controller/API/SoundFileRecordingsItem.pm index 1daebe3766..1290d2562d 100644 --- a/lib/NGCP/Panel/Controller/API/SoundFileRecordingsItem.pm +++ b/lib/NGCP/Panel/Controller/API/SoundFileRecordingsItem.pm @@ -40,11 +40,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/SoundFiles.pm b/lib/NGCP/Panel/Controller/API/SoundFiles.pm index fdd5574606..7ce6930472 100644 --- a/lib/NGCP/Panel/Controller/API/SoundFiles.pm +++ b/lib/NGCP/Panel/Controller/API/SoundFiles.pm @@ -64,11 +64,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + sub auto :Private { my ($self, $c) = @_; diff --git a/lib/NGCP/Panel/Controller/API/SoundFilesItem.pm b/lib/NGCP/Panel/Controller/API/SoundFilesItem.pm index e07e5d122c..ba387be7c2 100644 --- a/lib/NGCP/Panel/Controller/API/SoundFilesItem.pm +++ b/lib/NGCP/Panel/Controller/API/SoundFilesItem.pm @@ -40,11 +40,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/SoundHandles.pm b/lib/NGCP/Panel/Controller/API/SoundHandles.pm index c0c21275a4..8cf94aaf59 100644 --- a/lib/NGCP/Panel/Controller/API/SoundHandles.pm +++ b/lib/NGCP/Panel/Controller/API/SoundHandles.pm @@ -65,11 +65,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/SoundHandlesItem.pm b/lib/NGCP/Panel/Controller/API/SoundHandlesItem.pm index 8f031ae33b..b0d4d6c1f4 100644 --- a/lib/NGCP/Panel/Controller/API/SoundHandlesItem.pm +++ b/lib/NGCP/Panel/Controller/API/SoundHandlesItem.pm @@ -40,11 +40,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/SoundSets.pm b/lib/NGCP/Panel/Controller/API/SoundSets.pm index 3255b12801..33d5201294 100644 --- a/lib/NGCP/Panel/Controller/API/SoundSets.pm +++ b/lib/NGCP/Panel/Controller/API/SoundSets.pm @@ -85,11 +85,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/SoundSetsItem.pm b/lib/NGCP/Panel/Controller/API/SoundSetsItem.pm index c841f23885..0767bda9de 100644 --- a/lib/NGCP/Panel/Controller/API/SoundSetsItem.pm +++ b/lib/NGCP/Panel/Controller/API/SoundSetsItem.pm @@ -50,11 +50,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/SpeedDials.pm b/lib/NGCP/Panel/Controller/API/SpeedDials.pm index eb009a2ca8..df0505d651 100644 --- a/lib/NGCP/Panel/Controller/API/SpeedDials.pm +++ b/lib/NGCP/Panel/Controller/API/SpeedDials.pm @@ -69,11 +69,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/SpeedDialsItem.pm b/lib/NGCP/Panel/Controller/API/SpeedDialsItem.pm index 48d549e945..fb5b001c61 100644 --- a/lib/NGCP/Panel/Controller/API/SpeedDialsItem.pm +++ b/lib/NGCP/Panel/Controller/API/SpeedDialsItem.pm @@ -53,11 +53,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/SubscriberPreferenceDefs.pm b/lib/NGCP/Panel/Controller/API/SubscriberPreferenceDefs.pm index 4766ee5f47..05fbaeda07 100644 --- a/lib/NGCP/Panel/Controller/API/SubscriberPreferenceDefs.pm +++ b/lib/NGCP/Panel/Controller/API/SubscriberPreferenceDefs.pm @@ -45,11 +45,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + sub GET :Allow { my ($self, $c) = @_; diff --git a/lib/NGCP/Panel/Controller/API/SubscriberPreferences.pm b/lib/NGCP/Panel/Controller/API/SubscriberPreferences.pm index 45ed140c69..eaeea09a11 100644 --- a/lib/NGCP/Panel/Controller/API/SubscriberPreferences.pm +++ b/lib/NGCP/Panel/Controller/API/SubscriberPreferences.pm @@ -89,11 +89,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + sub GET :Allow { my ($self, $c) = @_; diff --git a/lib/NGCP/Panel/Controller/API/SubscriberPreferencesItem.pm b/lib/NGCP/Panel/Controller/API/SubscriberPreferencesItem.pm index 56362553c5..db6eccec0b 100644 --- a/lib/NGCP/Panel/Controller/API/SubscriberPreferencesItem.pm +++ b/lib/NGCP/Panel/Controller/API/SubscriberPreferencesItem.pm @@ -54,11 +54,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/SubscriberProfileSets.pm b/lib/NGCP/Panel/Controller/API/SubscriberProfileSets.pm index a489743009..cb446893f4 100644 --- a/lib/NGCP/Panel/Controller/API/SubscriberProfileSets.pm +++ b/lib/NGCP/Panel/Controller/API/SubscriberProfileSets.pm @@ -74,11 +74,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/SubscriberProfileSetsItem.pm b/lib/NGCP/Panel/Controller/API/SubscriberProfileSetsItem.pm index bb0840829a..341697e2f7 100644 --- a/lib/NGCP/Panel/Controller/API/SubscriberProfileSetsItem.pm +++ b/lib/NGCP/Panel/Controller/API/SubscriberProfileSetsItem.pm @@ -50,11 +50,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/SubscriberProfiles.pm b/lib/NGCP/Panel/Controller/API/SubscriberProfiles.pm index 65c3f03fdb..3e5d0b9f29 100644 --- a/lib/NGCP/Panel/Controller/API/SubscriberProfiles.pm +++ b/lib/NGCP/Panel/Controller/API/SubscriberProfiles.pm @@ -74,11 +74,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/SubscriberProfilesItem.pm b/lib/NGCP/Panel/Controller/API/SubscriberProfilesItem.pm index c05a62c146..e4ecf2ce7d 100644 --- a/lib/NGCP/Panel/Controller/API/SubscriberProfilesItem.pm +++ b/lib/NGCP/Panel/Controller/API/SubscriberProfilesItem.pm @@ -50,11 +50,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/SubscriberRegistrations.pm b/lib/NGCP/Panel/Controller/API/SubscriberRegistrations.pm index 0fad6e70f0..e3f9e1795e 100644 --- a/lib/NGCP/Panel/Controller/API/SubscriberRegistrations.pm +++ b/lib/NGCP/Panel/Controller/API/SubscriberRegistrations.pm @@ -83,11 +83,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/SubscriberRegistrationsItem.pm b/lib/NGCP/Panel/Controller/API/SubscriberRegistrationsItem.pm index c71ad60ad3..a2425e0fcb 100644 --- a/lib/NGCP/Panel/Controller/API/SubscriberRegistrationsItem.pm +++ b/lib/NGCP/Panel/Controller/API/SubscriberRegistrationsItem.pm @@ -40,11 +40,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/Subscribers.pm b/lib/NGCP/Panel/Controller/API/Subscribers.pm index a31a80e112..a9452ab32c 100644 --- a/lib/NGCP/Panel/Controller/API/Subscribers.pm +++ b/lib/NGCP/Panel/Controller/API/Subscribers.pm @@ -286,11 +286,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/SubscribersItem.pm b/lib/NGCP/Panel/Controller/API/SubscribersItem.pm index 472a4b2316..791071ac04 100644 --- a/lib/NGCP/Panel/Controller/API/SubscribersItem.pm +++ b/lib/NGCP/Panel/Controller/API/SubscribersItem.pm @@ -54,11 +54,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/SystemContacts.pm b/lib/NGCP/Panel/Controller/API/SystemContacts.pm index 47c138119a..136e54a00f 100644 --- a/lib/NGCP/Panel/Controller/API/SystemContacts.pm +++ b/lib/NGCP/Panel/Controller/API/SystemContacts.pm @@ -64,11 +64,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/SystemContactsItem.pm b/lib/NGCP/Panel/Controller/API/SystemContactsItem.pm index 7c0733aeb6..895c05b91a 100644 --- a/lib/NGCP/Panel/Controller/API/SystemContactsItem.pm +++ b/lib/NGCP/Panel/Controller/API/SystemContactsItem.pm @@ -51,11 +51,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/TopupCash.pm b/lib/NGCP/Panel/Controller/API/TopupCash.pm index 642a5c9b08..6f964de1fd 100644 --- a/lib/NGCP/Panel/Controller/API/TopupCash.pm +++ b/lib/NGCP/Panel/Controller/API/TopupCash.pm @@ -57,11 +57,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/TopupLogs.pm b/lib/NGCP/Panel/Controller/API/TopupLogs.pm index 6760989f78..72c1a0a019 100644 --- a/lib/NGCP/Panel/Controller/API/TopupLogs.pm +++ b/lib/NGCP/Panel/Controller/API/TopupLogs.pm @@ -169,11 +169,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/TopupLogsItem.pm b/lib/NGCP/Panel/Controller/API/TopupLogsItem.pm index bda1cb7888..eb5c2e561c 100644 --- a/lib/NGCP/Panel/Controller/API/TopupLogsItem.pm +++ b/lib/NGCP/Panel/Controller/API/TopupLogsItem.pm @@ -40,11 +40,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/TopupVouchers.pm b/lib/NGCP/Panel/Controller/API/TopupVouchers.pm index cd21c360fa..79934f581e 100644 --- a/lib/NGCP/Panel/Controller/API/TopupVouchers.pm +++ b/lib/NGCP/Panel/Controller/API/TopupVouchers.pm @@ -57,11 +57,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/TrustedSources.pm b/lib/NGCP/Panel/Controller/API/TrustedSources.pm index d10ea9c115..1a1b5ad594 100644 --- a/lib/NGCP/Panel/Controller/API/TrustedSources.pm +++ b/lib/NGCP/Panel/Controller/API/TrustedSources.pm @@ -68,11 +68,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/TrustedSourcesItem.pm b/lib/NGCP/Panel/Controller/API/TrustedSourcesItem.pm index 11f796556e..754ffe3cd1 100644 --- a/lib/NGCP/Panel/Controller/API/TrustedSourcesItem.pm +++ b/lib/NGCP/Panel/Controller/API/TrustedSourcesItem.pm @@ -50,11 +50,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/UpnRewriteSets.pm b/lib/NGCP/Panel/Controller/API/UpnRewriteSets.pm index 953d475598..0c6eb10d4c 100644 --- a/lib/NGCP/Panel/Controller/API/UpnRewriteSets.pm +++ b/lib/NGCP/Panel/Controller/API/UpnRewriteSets.pm @@ -67,11 +67,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/UpnRewriteSetsItem.pm b/lib/NGCP/Panel/Controller/API/UpnRewriteSetsItem.pm index 37e78e73f4..8f8e1c3837 100644 --- a/lib/NGCP/Panel/Controller/API/UpnRewriteSetsItem.pm +++ b/lib/NGCP/Panel/Controller/API/UpnRewriteSetsItem.pm @@ -50,11 +50,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/VoicemailRecordings.pm b/lib/NGCP/Panel/Controller/API/VoicemailRecordings.pm index e88e4fcb2d..ecfb862339 100644 --- a/lib/NGCP/Panel/Controller/API/VoicemailRecordings.pm +++ b/lib/NGCP/Panel/Controller/API/VoicemailRecordings.pm @@ -56,11 +56,7 @@ sub query_params { ]; } -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + 1; diff --git a/lib/NGCP/Panel/Controller/API/VoicemailRecordingsItem.pm b/lib/NGCP/Panel/Controller/API/VoicemailRecordingsItem.pm index afb8980d70..88af818aa1 100644 --- a/lib/NGCP/Panel/Controller/API/VoicemailRecordingsItem.pm +++ b/lib/NGCP/Panel/Controller/API/VoicemailRecordingsItem.pm @@ -42,11 +42,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + sub GET :Allow { my ($self, $c, $id) = @_; diff --git a/lib/NGCP/Panel/Controller/API/VoicemailSettings.pm b/lib/NGCP/Panel/Controller/API/VoicemailSettings.pm index 583f020db7..0a5d1b8673 100644 --- a/lib/NGCP/Panel/Controller/API/VoicemailSettings.pm +++ b/lib/NGCP/Panel/Controller/API/VoicemailSettings.pm @@ -67,11 +67,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/VoicemailSettingsItem.pm b/lib/NGCP/Panel/Controller/API/VoicemailSettingsItem.pm index 7130518732..4f0fadaba0 100644 --- a/lib/NGCP/Panel/Controller/API/VoicemailSettingsItem.pm +++ b/lib/NGCP/Panel/Controller/API/VoicemailSettingsItem.pm @@ -50,11 +50,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + sub GET :Allow { my ($self, $c, $id) = @_; diff --git a/lib/NGCP/Panel/Controller/API/Voicemails.pm b/lib/NGCP/Panel/Controller/API/Voicemails.pm index 130dda0854..95ffce1177 100644 --- a/lib/NGCP/Panel/Controller/API/Voicemails.pm +++ b/lib/NGCP/Panel/Controller/API/Voicemails.pm @@ -76,11 +76,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/VoicemailsItem.pm b/lib/NGCP/Panel/Controller/API/VoicemailsItem.pm index cfe88208f1..3a25cada9b 100644 --- a/lib/NGCP/Panel/Controller/API/VoicemailsItem.pm +++ b/lib/NGCP/Panel/Controller/API/VoicemailsItem.pm @@ -41,11 +41,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/Vouchers.pm b/lib/NGCP/Panel/Controller/API/Vouchers.pm index 03b487fff5..7b49acf737 100644 --- a/lib/NGCP/Panel/Controller/API/Vouchers.pm +++ b/lib/NGCP/Panel/Controller/API/Vouchers.pm @@ -74,11 +74,7 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} + diff --git a/lib/NGCP/Panel/Controller/API/VouchersItem.pm b/lib/NGCP/Panel/Controller/API/VouchersItem.pm index 53dbd9187d..a0d749c9f5 100644 --- a/lib/NGCP/Panel/Controller/API/VouchersItem.pm +++ b/lib/NGCP/Panel/Controller/API/VouchersItem.pm @@ -40,14 +40,6 @@ __PACKAGE__->config( }, ); -sub gather_default_action_roles { - my ($self, %args) = @_; my @roles = (); - push @roles, 'NGCP::Panel::Role::HTTPMethods' if $args{attributes}->{Method}; - return @roles; -} - - - sub GET :Allow { my ($self, $c, $id) = @_; {