projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Renamed MULTITEAM_MODE to MULTIORG_MODE to better reflect the meaning of the constant.
[timetracker.git]
/
cf_dropdown_option_edit.php
diff --git
a/cf_dropdown_option_edit.php
b/cf_dropdown_option_edit.php
index
5fc333d
..
4f1103d
100644
(file)
--- a/
cf_dropdown_option_edit.php
+++ b/
cf_dropdown_option_edit.php
@@
-30,16
+30,22
@@
require_once('initialize.php');
require_once('plugins/CustomFields.class.php');
import('form.Form');
require_once('plugins/CustomFields.class.php');
import('form.Form');
-// Access check.
-if (!ttAccessAllowed('manage_custom_fields')
|| !$user->isPluginEnabled('cf')
) {
+// Access check
s
.
+if (!ttAccessAllowed('manage_custom_fields')) {
header('Location: access_denied.php');
exit();
}
header('Location: access_denied.php');
exit();
}
-
+if (!$user->isPluginEnabled('cf')) {
+ header('Location: feature_disabled.php');
+ exit();
+}
$cl_id = $request->getParameter('id');
$cl_name = CustomFields::getOptionName($cl_id);
$cl_id = $request->getParameter('id');
$cl_name = CustomFields::getOptionName($cl_id);
-if (false === $cl_name)
- $err->add($i18n->get('error.db'));
+if (!$cl_name) {
+ header('Location: access_denied.php');
+ exit();
+}
+// End of access checks.
$form = new Form('optionEditForm');
if ($err->no()) {
$form = new Form('optionEditForm');
if ($err->no()) {