TT#27154 make timezone ajax acessible to subadmin

does not contain sensitive data, only a list of available timezones for the
datatables table to be shown. this is needed in Subscribers -> edit Master
dialogue for subscribers

Change-Id: Ie05f8635e97ad3814332e07e879979bb07664393
(cherry picked from commit 248e5c88b8)
changes/26/17626/1
Gerhard Jungwirth 8 years ago
parent 7d4fad1fc7
commit c22c2809c6

@ -10,14 +10,14 @@ use NGCP::Panel::Utils::Message;
use NGCP::Panel::Utils::Navigation;
use NGCP::Panel::Utils::DateTime qw();
sub auto :Does(ACL) :ACLDetachTo('/denied_page') :AllowedRole(admin) :AllowedRole(reseller) {
sub auto :Private {
my ($self, $c) = @_;
$c->log->debug(__PACKAGE__ . '::auto');
NGCP::Panel::Utils::Navigation::check_redirect_chain(c => $c);
return 1;
}
sub list_contact :Chained('/') :PathPart('contact') :CaptureArgs(0) {
sub list_contact :Chained('/') :PathPart('contact') :CaptureArgs(0) :Does(ACL) :ACLDetachTo('/denied_page') :AllowedRole(admin) :AllowedRole(reseller) {
my ($self, $c) = @_;
my $contacts = $c->model('DB')->resultset('contacts')->search({
@ -329,7 +329,7 @@ sub ajax_list_contacts{
}
sub countries_ajax :Chained('/') :PathPart('contact/country/ajax') :Args(0) {
sub countries_ajax :Chained('/') :PathPart('contact/country/ajax') :Args(0) :Does(ACL) :ACLDetachTo('/denied_page') :AllowedRole(admin) :AllowedRole(reseller) {
my ($self, $c) = @_;
my $from = $c->request->params->{iDisplayStart} // 0;

Loading…
Cancel
Save