mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Added checking user tags in event list
This commit is contained in:
parent
bc251e58df
commit
70bf27f48a
@ -235,6 +235,18 @@ else {
|
|||||||
|
|
||||||
//Search by tag
|
//Search by tag
|
||||||
if (!empty($tag_with)) {
|
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 ( ';
|
$sql_post .= ' AND ( ';
|
||||||
$first = true;
|
$first = true;
|
||||||
$filter_resume['tag_inc'] = $tag_with;
|
$filter_resume['tag_inc'] = $tag_with;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user