projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed no longer used maintenance code.
[timetracker.git]
/
report_send.php
diff --git
a/report_send.php
b/report_send.php
index
b420b3a
..
9bbf9f5
100644
(file)
--- a/
report_send.php
+++ b/
report_send.php
@@
-33,7
+33,7
@@
import('ttSysConfig');
import('ttReportHelper');
// Access check.
import('ttReportHelper');
// Access check.
-if (!
ttAccessAllowed('view_own_reports'
)) {
+if (!
(ttAccessAllowed('view_own_reports') || ttAccessAllowed('view_reports')
)) {
header('Location: access_denied.php');
exit();
}
header('Location: access_denied.php');
exit();
}
@@
-72,8
+72,10
@@
if ($request->isPost()) {
// Obtain session bean with report attributes.
$bean = new ActionForm('reportBean', new Form('reportForm'));
// Obtain session bean with report attributes.
$bean = new ActionForm('reportBean', new Form('reportForm'));
+ $options = ttReportHelper::getReportOptions($bean);
+
// Prepare report body.
// Prepare report body.
- $body = ttReportHelper::prepareReportBody($
bean
, $cl_comment);
+ $body = ttReportHelper::prepareReportBody($
options
, $cl_comment);
import('mail.Mailer');
$mailer = new Mailer();
import('mail.Mailer');
$mailer = new Mailer();