Added more access control checks.
[timetracker.git] / locking.php
index dfdc2f2..8acdcd7 100644 (file)
@@ -31,7 +31,7 @@ import('form.Form');
 import('ttTeamHelper');
 
 // Access check.
-if (!ttAccessCheck(right_manage_team)) {
+if (!ttAccessCheck(right_manage_team) || !$user->isPluginEnabled('lk')) {
   header('Location: access_denied.php');
   exit();
 }