Merge branch 'fronkdev' into 'master'

Added permission for Invoice

See merge request fronk/thetool!469
This commit is contained in:
Frank Schubert
2024-07-10 17:17:30 +00:00
2 changed files with 6 additions and 5 deletions
+5 -5
View File
@@ -15,7 +15,7 @@ class InvoiceController extends mfBaseController {
}
protected function indexAction() {
if(!$this->me->is("Billing")) {
if(!$this->me->can("Billing")) {
$this->redirect("Dashboard");
}
$this->layout()->setTemplate("Invoice/Index");
@@ -182,7 +182,7 @@ class InvoiceController extends mfBaseController {
protected function runInvoicingAction() {
if(!$this->me->is("Billing")) {
if(!$this->me->can("Billing")) {
$this->redirect("Dashboard");
}
@@ -573,7 +573,7 @@ class InvoiceController extends mfBaseController {
}
protected function exportBmdAction() {
if(!$this->me->is("Billing")) {
if(!$this->me->can("Billing")) {
$this->redirect("Dashboard");
}
/*
@@ -707,7 +707,7 @@ class InvoiceController extends mfBaseController {
}
protected function sendInvoicesAction() {
if(!$this->me->is("Billing")) {
if(!$this->me->can("Billing")) {
$this->redirect("Dashboard");
}
@@ -767,7 +767,7 @@ class InvoiceController extends mfBaseController {
}
public function printInvoices() {
if(!$this->me->is("Billing")) {
if(!$this->me->can("Billing")) {
$this->redirect("Dashboard");
}