Added permission for Invoice

This commit is contained in:
Frank Schubert
2024-07-10 19:17:06 +02:00
parent 2094fd66a2
commit c9a8a4fef3
2 changed files with 6 additions and 5 deletions

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");
}