X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=topdf.php;h=475522ef9ca87cb6dbe121929f48cabf3d583268;hb=a490f47a3440b85efc7ef9c1795dd59dac60c83b;hp=b8f6684c475b447b4ae50e16e8a54af33178cb07;hpb=fd0872d9e582113346fa1e93557f370286c5c9f2;p=timetracker.git diff --git a/topdf.php b/topdf.php index b8f6684c..475522ef 100644 --- a/topdf.php +++ b/topdf.php @@ -35,11 +35,12 @@ import('form.Form'); import('form.ActionForm'); import('ttReportHelper'); -// Access check. -if (!ttAccessAllowed('view_own_reports')) { +// Access checks. +if (!(ttAccessAllowed('view_own_reports') || ttAccessAllowed('view_reports'))) { header('Location: access_denied.php'); exit(); } +// End of access checks. // Check whether TCPDF library is available. if (!file_exists('WEB-INF/lib/tcpdf/'))