TT#182053 Header Manipulations feature is hidden for CE

* "Header Manipulations" UI is now hidden for CE
* /api/headerrulesets is now hidden for CE
* /api/headerrules is now hidden for CE
* /api/headerruleconditions is now hidden for CE
* /api/headerruleactions is now hidden for CE

Change-Id: I717b9d3cdf693f01e32f81086b69aafce4f3113a
(cherry picked from commit a8bc49408a)
mr10.5.4
Kirill Solomko 3 years ago
parent be4dc2f9a2
commit 496d828103

@ -9,6 +9,7 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::HeaderRuleActi
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
allowed_ngcp_types => [qw/carrier sppro/],
});
sub allowed_methods {

@ -12,6 +12,7 @@ __PACKAGE__->set_config({
Default => [qw/admin reseller/],
Journal => [qw/admin reseller/],
},
allowed_ngcp_types => [qw/carrier sppro/],
PATCH => { ops => [qw/add replace remove copy/] },
});

@ -9,6 +9,7 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::HeaderRuleCond
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
allowed_ngcp_types => [qw/carrier sppro/],
});
sub allowed_methods {

@ -12,6 +12,7 @@ __PACKAGE__->set_config({
Default => [qw/admin reseller/],
Journal => [qw/admin reseller/],
},
allowed_ngcp_types => [qw/carrier sppro/],
PATCH => { ops => [qw/add replace remove copy/] },
});

@ -8,6 +8,7 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::HeaderRuleSets
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
allowed_ngcp_types => [qw/carrier sppro/],
});
sub allowed_methods {

@ -12,6 +12,7 @@ __PACKAGE__->set_config({
Default => [qw/admin reseller/],
Journal => [qw/admin reseller/],
},
allowed_ngcp_types => [qw/carrier sppro/],
PATCH => { ops => [qw/add replace remove copy/] },
});

@ -9,6 +9,7 @@ use parent qw/NGCP::Panel::Role::Entities NGCP::Panel::Role::API::HeaderRules/;
__PACKAGE__->set_config({
allowed_roles => [qw/admin reseller/],
allowed_ngcp_types => [qw/carrier sppro/],
});
sub allowed_methods {

@ -12,6 +12,7 @@ __PACKAGE__->set_config({
Default => [qw/admin reseller/],
Journal => [qw/admin reseller/],
},
allowed_ngcp_types => [qw/carrier sppro/],
PATCH => { ops => [qw/add replace remove copy/] },
});

@ -962,6 +962,7 @@ $( document ).ready(function() {
</div>
[% END -%]
[% IF c.config.general.ngcp_type != 'spce' -%]
[% UNLESS c.user.roles == 'subscriber' || c.user.roles == 'subscriberadmin' -%]
<div class="accordion-group">
<div class="accordion-heading">
@ -1013,6 +1014,7 @@ $( document ).ready(function() {
</div>
</div>
[% END -%]
[% END -%]
[% UNLESS c.user.roles == 'subscriber' || c.user.roles == 'subscriberadmin' -%]
<div class="accordion-group">

@ -80,7 +80,9 @@
[% END -%]
<li><a href="[% c.uri_for('/peering') %]">[% c.loc('Peerings') %]</a></li>
<li><a href="[% c.uri_for('/rewrite') %]">[% c.loc('Rewrite Rule Sets') %]</a></li>
[% IF c.config.general.ngcp_type != 'spce' -%]
<li><a href="[% c.uri_for('/header') %]">[% c.loc('Header Manipulations') %]</a></li>
[% END -%]
<li><a href="[% c.uri_for('/ncos') %]">[% c.loc('NCOS Levels') %]</a></li>
<li><a href="[% c.uri_for('/sound') %]">[% c.loc('Sound Sets') %]</a></li>
<li><a href="[% c.uri_for('/emailtemplate') %]">[% c.loc('Email Templates') %]</a></li>

Loading…
Cancel
Save