X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/e59d57b1fcf105382028dcfc0157a6ca84b0dc46..4dcb88a76a3de466ee6116ae0852f53ba2b259a5:/locking.php diff --git a/locking.php b/locking.php index 8a6f4304..2b49b837 100644 --- a/locking.php +++ b/locking.php @@ -30,11 +30,15 @@ require_once('initialize.php'); import('form.Form'); import('ttTeamHelper'); -// Access check. -if (!ttAccessAllowed('manage_advanced_settings') || !$user->isPluginEnabled('lk')) { +// Access checks. +if (!ttAccessAllowed('manage_advanced_settings')) { header('Location: access_denied.php'); exit(); } +if (!$user->isPluginEnabled('lk')) { + header('Location: feature_disabled.php'); + exit(); +} $cl_lock_spec = $request->isPost() ? $request->getParameter('lock_spec') : $user->lock_spec;