permission check for mark-as-exported buttons (#3313)

This commit is contained in:
Kevin Papst
2022-05-18 12:54:59 +02:00
committed by GitHub
parent 9e2a295182
commit 913839727c
7 changed files with 48 additions and 13 deletions

View File

@@ -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'