projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More refactoring in reports.
[timetracker.git]
/
client_delete.php
diff --git
a/client_delete.php
b/client_delete.php
index
b162ea8
..
22ae9d4
100644
(file)
--- a/
client_delete.php
+++ b/
client_delete.php
@@
-30,11
+30,15
@@
require_once('initialize.php');
import('form.Form');
import('ttClientHelper');
import('form.Form');
import('ttClientHelper');
-// Access check.
-if (!ttAccessAllowed('manage_clients')
|| !$user->isPluginEnabled('cl')
) {
+// Access check
s
.
+if (!ttAccessAllowed('manage_clients')) {
header('Location: access_denied.php');
exit();
}
header('Location: access_denied.php');
exit();
}
+if (!$user->isPluginEnabled('cl')) {
+ header('Location: feature_disabled.php');
+ exit();
+}
$id = (int)$request->getParameter('id');
$client = ttClientHelper::getClient($id);
$id = (int)$request->getParameter('id');
$client = ttClientHelper::getClient($id);