A bit more progress on getting rid of canManageTeam.
[timetracker.git] / mobile / client_add.php
index 56f5d08..71f51ca 100644 (file)
@@ -32,7 +32,7 @@ import('ttClientHelper');
 import('ttTeamHelper');
 
 // Access check.
-if (!ttAccessCheck(right_manage_team)) {
+if (!ttAccessAllowed('manage_clients') || !$user->isPluginEnabled('cl')) {
   header('Location: access_denied.php');
   exit();
 }