This commit is contained in:
alejandro.campos@artica.es 2022-09-19 15:42:43 +02:00
parent c49b4db32d
commit 2852311cf7
2 changed files with 4 additions and 1 deletions

View File

@ -4953,6 +4953,8 @@ function events_clean_tags($tags)
}
$event_tags = tags_get_tags_formatted($tags, false);
$event_tags = io_safe_input($event_tags);
return explode(',', str_replace(' ', '', $event_tags));
}

View File

@ -1334,7 +1334,7 @@ function tags_checks_event_acl($id_user, $id_group, $access, $tags=[], $children
WHERE ".get_acl_column($access).' = 1)';
if (isset($id_group)) {
$sql .= 'AND id_grupo = '.$id_group;
$sql .= ' AND id_grupo = '.$id_group;
}
$user_has_perm_without_tags = db_get_all_rows_sql($sql);
@ -1343,6 +1343,7 @@ function tags_checks_event_acl($id_user, $id_group, $access, $tags=[], $children
return true;
}
$tags_aux = [];
$tags_str = '';
if (!empty($tags)) {
foreach ($tags as $tag) {