X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=users.php;h=35fd4168cda8f57789165263f5bb139082e0f807;hb=e02d7592b0556895e35f4d028939197c132f6b09;hp=28a37227a523e445e88e3d09819fab87b9422421;hpb=8d68ecdd7b1c45cb2a5cf592b8d504d7e4614911;p=timetracker.git 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');