Added permission for Invoice
This commit is contained in:
@@ -93,6 +93,7 @@
|
|||||||
<li><a href="<?=self::getUrl("Contract")?>"><i class="far fa-fw fa-id-card text-info"></i> Contracts</a></li>
|
<li><a href="<?=self::getUrl("Contract")?>"><i class="far fa-fw fa-id-card text-info"></i> Contracts</a></li>
|
||||||
<li class="has-sub-submenu"><a href="<?=self::getUrl("Contract", "AdvancedSearch")?>"><i class="far fa-fw fa-question-circle text-info"></i> Erweiterte Suche</a></li>
|
<li class="has-sub-submenu"><a href="<?=self::getUrl("Contract", "AdvancedSearch")?>"><i class="far fa-fw fa-question-circle text-info"></i> Erweiterte Suche</a></li>
|
||||||
<?php if($me->is(["Admin"]) && $me->can("Billing")): ?><li><a href="<?=self::getUrl("Billing")?>"><i class="far fa-fw fa-cash-register text-info"></i> Verrechnung</a></li><?php endif; ?>
|
<?php if($me->is(["Admin"]) && $me->can("Billing")): ?><li><a href="<?=self::getUrl("Billing")?>"><i class="far fa-fw fa-cash-register text-info"></i> Verrechnung</a></li><?php endif; ?>
|
||||||
|
<?php if($me->is(["Admin"]) && $me->can("Billing")): ?><li><a href="<?=self::getUrl("Invoice")?>"><i class="far fa-fw fa-file-invoice-dollar text-info"></i> Rechnungen</a></li><?php endif; ?>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ class InvoiceController extends mfBaseController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected function indexAction() {
|
protected function indexAction() {
|
||||||
if(!$this->me->is("Billing")) {
|
if(!$this->me->can("Billing")) {
|
||||||
$this->redirect("Dashboard");
|
$this->redirect("Dashboard");
|
||||||
}
|
}
|
||||||
$this->layout()->setTemplate("Invoice/Index");
|
$this->layout()->setTemplate("Invoice/Index");
|
||||||
@@ -182,7 +182,7 @@ class InvoiceController extends mfBaseController {
|
|||||||
|
|
||||||
|
|
||||||
protected function runInvoicingAction() {
|
protected function runInvoicingAction() {
|
||||||
if(!$this->me->is("Billing")) {
|
if(!$this->me->can("Billing")) {
|
||||||
$this->redirect("Dashboard");
|
$this->redirect("Dashboard");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -573,7 +573,7 @@ class InvoiceController extends mfBaseController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected function exportBmdAction() {
|
protected function exportBmdAction() {
|
||||||
if(!$this->me->is("Billing")) {
|
if(!$this->me->can("Billing")) {
|
||||||
$this->redirect("Dashboard");
|
$this->redirect("Dashboard");
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
@@ -707,7 +707,7 @@ class InvoiceController extends mfBaseController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected function sendInvoicesAction() {
|
protected function sendInvoicesAction() {
|
||||||
if(!$this->me->is("Billing")) {
|
if(!$this->me->can("Billing")) {
|
||||||
$this->redirect("Dashboard");
|
$this->redirect("Dashboard");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -767,7 +767,7 @@ class InvoiceController extends mfBaseController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function printInvoices() {
|
public function printInvoices() {
|
||||||
if(!$this->me->is("Billing")) {
|
if(!$this->me->can("Billing")) {
|
||||||
$this->redirect("Dashboard");
|
$this->redirect("Dashboard");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user