2010-09-29 Sergio Martin <sergio.martin@artica.es>

* include/functions_db.php
	operation/messages/message.php: Fixed the ACLs 
	to show only the user group users in the destination
	users combo for bug: 3077857



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3318 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
zarzuelo 2010-09-29 16:02:13 +00:00
parent a921364450
commit 1940382424
3 changed files with 15 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2010-09-29 Sergio Martin <sergio.martin@artica.es>
* include/functions_db.php
operation/messages/message.php: Fixed the ACLs
to show only the user group users in the destination
users combo for bug: 3077857
2010-09-29 Sergio Martin <sergio.martin@artica.es>
* godmode/massive/massive_copy_modules.php: Fixed the

View File

@ -3527,7 +3527,7 @@ function process_sql_rollback () {
function get_group_users ($id_group, $filter = false) {
if (! is_array ($filter))
$filter = array ();
$filter['id_grupo'] = (int) $id_group;
$filter['id_grupo'] = $id_group;
$resulta = array();
$resulta = get_db_all_rows_filter ("tusuario_perfil", $filter);

View File

@ -83,8 +83,14 @@ if (isset ($_GET["new_msg"])) { //create message
</tr><tr>
<td class="datos2">'.__('Message to').':</td>
<td class="datos2">';
$users_full = get_group_users(array_keys(get_user_groups()));
$users = array();
foreach ($users_full as $user_id => $user_info) {
$users[$user_info['id_user']] = $user_info['fullname'];
}
$users = get_users_info (); //Get a list of all users
$groups = get_user_groups ($config["id_user"], "AR"); //Get a list of all groups
print_select ($users, "dest_user", $dest_user, '', __('-Select user-'), false, false, false, '', false);