Added permission for Invoice
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user