2010-04-16 Sergio Martin <sergio.martin@artica.es>
* operation/users/user.php: Modified the users that are showed in the View users section. Now, the users of the logged user group are listed. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2573 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
d53c9236ab
commit
4eb56bd522
|
@ -1,3 +1,10 @@
|
|||
2010-04-16 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* operation/users/user.php: Modified the users that
|
||||
are showed in the View users section. Now, the users
|
||||
of the logged user group are listed.
|
||||
|
||||
|
||||
2010-04-16 Pablo de la Concepción <pablo.concepcion@artica.es>
|
||||
|
||||
* include/ajax/agent.php: Modified to return the agent name at the i
|
||||
|
|
|
@ -40,11 +40,26 @@ $table->head[4] = __('Description');
|
|||
$table->align[2] = "center";
|
||||
$table->align[3] = "center";
|
||||
|
||||
|
||||
$info = array ();
|
||||
if (give_acl ($config["id_user"], 0, "UM") == 1) {
|
||||
$info = get_users ();
|
||||
} else {
|
||||
$info[$config["id_user"]] = get_user_info ($config["id_user"]);
|
||||
$info = get_users ();
|
||||
|
||||
//Only the users from the user groups are visible
|
||||
|
||||
$user_groups = get_user_groups ($config["id_user"]);
|
||||
$user_groups_id = array_keys($user_groups);
|
||||
$users_id = array();
|
||||
|
||||
foreach ($user_groups_id as $group) {
|
||||
$user_group_users = get_group_users($group);
|
||||
foreach ($user_group_users as $user_group_user)
|
||||
array_push($users_id,get_user_id ($user_group_user));
|
||||
}
|
||||
|
||||
$users_hidden = array_diff(array_keys($info),$users_id);
|
||||
|
||||
foreach($users_hidden as $user_hidden){
|
||||
unset($info[$user_hidden]);
|
||||
}
|
||||
|
||||
$rowPair = true;
|
||||
|
|
Loading…
Reference in New Issue