projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed users page for revamped roles.
[timetracker.git]
/
client_delete.php
diff --git
a/client_delete.php
b/client_delete.php
index
e566455
..
eae3005
100644
(file)
--- a/
client_delete.php
+++ b/
client_delete.php
@@
-31,7
+31,7
@@
import('form.Form');
import('ttClientHelper');
// Access check.
import('ttClientHelper');
// Access check.
-if (!ttAccess
Check(right_manage_team
)) {
+if (!ttAccess
Allowed('manage_clients') || !$user->isPluginEnabled('cl'
)) {
header('Location: access_denied.php');
exit();
}
header('Location: access_denied.php');
exit();
}
@@
-55,16
+55,16
@@
if ($request->isPost()) {
header('Location: clients.php');
exit();
} else
header('Location: clients.php');
exit();
} else
- $err
ors
->add($i18n->getKey('error.db'));
+ $err->add($i18n->getKey('error.db'));
}
}
- } else
-
$errors
->add($i18n->getKey('error.db'));
+ } else
+
$err
->add($i18n->getKey('error.db'));
if ($request->getParameter('btn_cancel')) {
header('Location: clients.php');
exit();
}
if ($request->getParameter('btn_cancel')) {
header('Location: clients.php');
exit();
}
-} //
POST
+} //
isPost
$smarty->assign('client_to_delete', $client_to_delete);
$smarty->assign('forms', array($form->getName()=>$form->toArray()));
$smarty->assign('client_to_delete', $client_to_delete);
$smarty->assign('forms', array($form->getName()=>$form->toArray()));