projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed monthly quotas for negative hours.
[timetracker.git]
/
file_download.php
diff --git
a/file_download.php
b/file_download.php
index
8a17b4d
..
e4d35c7
100644
(file)
--- a/
file_download.php
+++ b/
file_download.php
@@
-29,6
+29,7
@@
require_once('initialize.php');
import('form.Form');
import('ttFileHelper');
require_once('initialize.php');
import('form.Form');
import('ttFileHelper');
+import('ttTimeHelper');
import('ttProjectHelper');
// Access checks.
import('ttProjectHelper');
// Access checks.
@@
-41,7
+42,7
@@
if (!$file) {
// Entity-specific checks.
$entity_type = $file['entity_type'];
if ($entity_type == 'time') {
// Entity-specific checks.
$entity_type = $file['entity_type'];
if ($entity_type == 'time') {
- if (!(ttAccessAllowed('track_own_time') || ttAccessAllowed('track_time')) || !ttTimeHelper::getRecord($file['entity_id'])) {
+ if (!(ttAccessAllowed('track_own_time') || ttAccessAllowed('track_time')) || !ttTimeHelper::getRecord
ForFileView
($file['entity_id'])) {
header('Location: access_denied.php');
exit();
}
header('Location: access_denied.php');
exit();
}