X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=locking.php;h=2b49b83752575eb1b4286a7c1be1e12e873bd7fb;hb=68a5cc5aff88d6144b6db95f7d01315c15e2ebda;hp=8a6f4304c3cd3ea8c158b0f62c0375212a059ecd;hpb=a62e4bdd1bc89ea4f3cf29507399b5b8f229597a;p=timetracker.git 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;