Fixed problems with user without all permissions and all groups enter in view events Tickets

This commit is contained in:
m-lopez-f 2015-02-06 15:11:14 +01:00
parent d49a895833
commit 142f6a5387

@ -880,7 +880,9 @@ function tags_get_acl_tags_event_condition($acltags, $meta = false, $force_group
// Tags condition (The module has at least one of the restricted tags)
$tags_condition = '';
if (empty($group_tags)) {
$tags_condition = "id_grupo = ".$group_id;
if($group_id>0){
$tags_condition = "id_grupo = ".$group_id;
}
} else {
foreach ($group_tags as $tag) {
// If the tag ID doesnt exist, ignore