permission check for mark-as-exported buttons (#3313)
This commit is contained in:
@@ -669,6 +669,7 @@ final class InvoiceController extends AbstractController
|
||||
'action' => $this->generateUrl('invoice', []),
|
||||
'method' => 'GET',
|
||||
'include_user' => $this->isGranted('view_other_timesheet'),
|
||||
'include_export' => $this->isGranted('edit_export_other_timesheet'),
|
||||
'timezone' => $this->getDateTimeFactory()->getTimezone()->getName(),
|
||||
'attr' => [
|
||||
'id' => 'invoice-print-form'
|
||||
|
||||
Reference in New Issue
Block a user