X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=users.php;h=af5389021e53487906edd52b40d94a9da217e35f;hb=e0ec0364d761e2dff5a7c0032f04ec1dbae50980;hp=f5335455f2cf504e5bdfa20f3c7642e6efad6457;hpb=9f4ffc38746c7d23beb7b48ba342dd0cc8e8b19a;p=timetracker.git diff --git a/users.php b/users.php index f5335455..af538902 100644 --- a/users.php +++ b/users.php @@ -32,17 +32,18 @@ import('ttTeamHelper'); import('ttTimeHelper'); import('ttRoleHelper'); -// Access check. +// Access checks. if (!(ttAccessAllowed('view_users') || ttAccessAllowed('manage_users'))) { header('Location: access_denied.php'); exit(); } +// End of access checks. // Prepare a list of active users. if ($user->can('view_users')) $options = array('status'=>ACTIVE,'include_clients'=>true,'include_login'=>true,'include_role'=>true); else /* if ($user->can('manage_users')) */ - $options = array('status'=>ACTIVE,'max_rank'=>$user->rank-1,'include_clients'=>true,'include_self'=>true,'self_first'=>true,'include_login'=>true,'include_role'=>true); + $options = array('status'=>ACTIVE,'max_rank'=>$user->rank-1,'include_clients'=>true,'include_self'=>true,'include_login'=>true,'include_role'=>true); $active_users = $user->getUsers($options); // Prepare a list of inactive users.