Merge branch 'ent-5492-Respuestas-eventos-no-disponibles-usuarios-con-tags' into 'develop'

Added tags_user for events responses

Closes pandora_enterprise#5492

See merge request artica/pandorafms!3091
This commit is contained in:
Alejandro Fraguas 2020-03-11 09:59:57 +01:00
commit 1cb6b8fa69

View File

@ -1366,7 +1366,9 @@ function tags_checks_event_acl($id_user, $id_group, $access, $tags=[], $children
$tag_conds = '';
if (!empty($tags_str)) {
$tag_conds = " AND (tags IN ('$tags_str') OR tags = '') ";
$tag_conds = " AND (tags IN ($tags_str) OR tags = '') ";
} else if (!empty($tags_user)) {
$tag_conds = " AND (tags IN ($tags_user) OR tags = '') ";
} else {
$tag_conds = " AND tags = '' ";
}