Merge branch '1905-Conteos-y-paginacion-incorrecta-en-vista-de-eventos-dev' into 'develop'

Added checking user tags in event list

See merge request artica/pandorafms!1428
This commit is contained in:
vgilc 2018-04-17 16:26:31 +02:00
commit bb2b086364
1 changed files with 12 additions and 0 deletions

View File

@ -235,6 +235,18 @@ else {
//Search by tag
if (!empty($tag_with)) {
if (!users_is_admin()) {
$user_tags = array_flip(tags_get_tags_for_module_search());
if($user_tags != null){
foreach ($tag_with as $id_tag) {
if (!array_search($id_tag,$user_tags)) {
return false;
}
}
}
}
$sql_post .= ' AND ( ';
$first = true;
$filter_resume['tag_inc'] = $tag_with;