mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
Fixed an error on the check acl functions
This commit is contained in:
parent
0a0283df0c
commit
9b1a57a89d
@ -1029,8 +1029,8 @@ function tags_check_acl($id_user, $id_group, $access, $tags = array(), $flag_id_
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// If there are not tags restrictions or tags passed, return true
|
// If there are not tags restrictions or tags passed, check the group access
|
||||||
if (empty($acls) || empty($tags)) {
|
if ((empty($acls) || empty($tags)) && check_acl($id_user, $id_group, $access)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1127,8 +1127,8 @@ function tags_check_acl_event($id_user, $id_group, $access, $tags = array(),$p =
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// If there are not tags restrictions or tags passed, return true
|
// If there are not tags restrictions or tags passed, check the group access
|
||||||
if(empty($acls) || empty($tags)) {
|
if ((empty($acls) || empty($tags)) && check_acl($id_user, $id_group, $access)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2195,7 +2195,7 @@ function tags_get_user_module_and_tags ($id_user = false, $access = 'AR', $stric
|
|||||||
}
|
}
|
||||||
|
|
||||||
$acl_column = get_acl_column($access);
|
$acl_column = get_acl_column($access);
|
||||||
|
|
||||||
$sql = sprintf("SELECT tags, id_grupo
|
$sql = sprintf("SELECT tags, id_grupo
|
||||||
FROM tusuario_perfil, tperfil
|
FROM tusuario_perfil, tperfil
|
||||||
WHERE tperfil.id_perfil = tusuario_perfil.id_perfil AND
|
WHERE tperfil.id_perfil = tusuario_perfil.id_perfil AND
|
||||||
|
Loading…
x
Reference in New Issue
Block a user