mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Fixed problems with view events when user permmisions have group that have child group. Tiquet: #2139
This commit is contained in:
parent
36bb075f03
commit
a9df4c9029
@ -693,14 +693,7 @@ function tags_get_acl_tags($id_user, $id_group, $access = 'AR',
|
||||
return ERR_WRONG_PARAMETERS;
|
||||
}
|
||||
|
||||
$query = sprintf("SELECT tags, id_grupo
|
||||
FROM tusuario_perfil, tperfil
|
||||
WHERE tperfil.id_perfil = tusuario_perfil.id_perfil AND
|
||||
tusuario_perfil.id_usuario = '%s' AND
|
||||
tperfil.%s = 1 AND
|
||||
(tusuario_perfil.id_grupo IN (%s) OR tusuario_perfil.id_grupo = 0)
|
||||
ORDER BY id_grupo", $id_user, $acl_column, implode(',',$id_group));
|
||||
$tags = db_get_all_rows_sql($query);
|
||||
$tags = tags_get_user_module_and_tags($id_user, $access);
|
||||
|
||||
// If not profiles returned, the user havent acl permissions
|
||||
if (empty($tags)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user