X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/8d68ecdd7b1c45cb2a5cf592b8d504d7e4614911..5f1b7a5bed3563565e28a5bf851298d3ed7df8c7:/users.php diff --git a/users.php b/users.php index 28a37227..35fd4168 100644 --- a/users.php +++ b/users.php @@ -33,7 +33,7 @@ import('ttTimeHelper'); import('ttRoleHelper'); // Access check. -if (!ttAccessAllowed('view_users')) { +if (!(ttAccessAllowed('view_users') || ttAccessAllowed('manage_users'))) { header('Location: access_denied.php'); exit(); } @@ -56,6 +56,6 @@ if ($user->uncompleted_indicators) { $smarty->assign('active_users', $active_users); $smarty->assign('inactive_users', $inactive_users); $smarty->assign('can_delete_manager', $can_delete_manager); -$smarty->assign('title', $i18n->getKey('title.users')); +$smarty->assign('title', $i18n->get('title.users')); $smarty->assign('content_page_name', 'users.tpl'); $smarty->display('index.tpl');