mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Fixed problems with user without all permissions and all groups enter in view events Tickets #1776
This commit is contained in:
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 (The module has at least one of the restricted tags)
|
||||||
$tags_condition = '';
|
$tags_condition = '';
|
||||||
if (empty($group_tags)) {
|
if (empty($group_tags)) {
|
||||||
$tags_condition = "id_grupo = ".$group_id;
|
if($group_id>0){
|
||||||
|
$tags_condition = "id_grupo = ".$group_id;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
foreach ($group_tags as $tag) {
|
foreach ($group_tags as $tag) {
|
||||||
// If the tag ID doesnt exist, ignore
|
// If the tag ID doesnt exist, ignore
|
||||||
|
Loading…
x
Reference in New Issue
Block a user