]> wagnertech.de Git - timetracker.git/blobdiff - mobile/clients.php
Added some protection from bot registrations.
[timetracker.git] / mobile / clients.php
index d6ebbe40691f98f6d5c18d43d77a312f3133cb86..d1a49f1e1d186132a05496c3bc14acef16215f15 100644 (file)
@@ -31,13 +31,13 @@ import('form.Form');
 import('ttTeamHelper');
 
 // Access check.
-if (!ttAccessCheck(right_manage_team)) {
+if (!ttAccessAllowed('manage_clients') || !$user->isPluginEnabled('cl')) {
   header('Location: access_denied.php');
   exit();
 }
 
 $smarty->assign('active_clients', ttTeamHelper::getActiveClients($user->team_id, true));
 $smarty->assign('inactive_clients', ttTeamHelper::getInactiveClients($user->team_id, true));
-$smarty->assign('title', $i18n->getKey('title.clients'));
+$smarty->assign('title', $i18n->get('title.clients'));
 $smarty->assign('content_page_name', 'mobile/clients.tpl');
 $smarty->display('mobile/index.tpl');