X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/a8a191541d6f05b08bd8331bdf409af5abfac896..14a6ab5e563acb66d090c6c291b5d51b1a31fae7:/cf_dropdown_option_edit.php diff --git a/cf_dropdown_option_edit.php b/cf_dropdown_option_edit.php index 5522accf..4f1103d7 100644 --- a/cf_dropdown_option_edit.php +++ b/cf_dropdown_option_edit.php @@ -39,11 +39,13 @@ if (!$user->isPluginEnabled('cf')) { header('Location: feature_disabled.php'); exit(); } - $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()) {