Some renaming.
[timetracker.git] / clients.php
index 61c6658..0a027b8 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('cl')) {
   header('Location: access_denied.php');
   exit();
 }
@@ -41,4 +41,3 @@ $smarty->assign('inactive_clients', ttTeamHelper::getInactiveClients($user->team
 $smarty->assign('title', $i18n->getKey('title.clients'));
 $smarty->assign('content_page_name', 'clients.tpl');
 $smarty->display('index.tpl');
-?>
\ No newline at end of file