From f218dde98e263aeebf63eb5bff4c4d4771782871 Mon Sep 17 00:00:00 2001 From: Kirill Solomko Date: Tue, 22 Apr 2025 17:31:08 +0200 Subject: [PATCH] MT#62600 fix UI invoice create/edit * fix Invoice create/edit operation error Couldn't render template "invoice/create.tt: file error - invoice/create.tt: not found" that was related to an incomplete restricted function call. Change-Id: Ic457f180ca99fcdacd51b2ba3bb5606719ea9bdd (cherry picked from commit 7a7c5cd3644c3a864b9db9557f403398b87f9dde) (cherry picked from commit 26ffaf0d82edeedd99d8436520cef1497689bd35) --- lib/NGCP/Panel/Controller/Invoice.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/NGCP/Panel/Controller/Invoice.pm b/lib/NGCP/Panel/Controller/Invoice.pm index c9f0fb03d9..7a561ed487 100644 --- a/lib/NGCP/Panel/Controller/Invoice.pm +++ b/lib/NGCP/Panel/Controller/Invoice.pm @@ -52,6 +52,8 @@ sub inv_list :Chained('/') :PathPart('invoice') :CaptureArgs(0) :Does(ACL) :ACLD sub inv_list_restricted :Chained('/') :PathPart('invoice') :CaptureArgs(0) :Does(License) :RequiresLicense('invoice') :LicenseDetachTo('/denied_page') :Does(ACL) :ACLDetachTo('/denied_page') :AllowedRole(admin) :AllowedRole(reseller) :AllowedRole(subscriberadmin) { my ($self, $c) = @_; + + $self->inv_list($c); } sub customer_inv_list :Chained('/') :PathPart('invoice/customer') :CaptureArgs(1) :Does(ACL) :ACLDetachTo('/denied_page') :AllowedRole(admin) :AllowedRole(reseller) :AllowedRole(ccareadmin) :AllowedRole(ccare) :AllowedRole(subscriberadmin) {