Fixed bug in event list.

This commit is contained in:
Vanessa Gil 2015-03-17 12:36:10 +01:00
parent c873fd6993
commit 7f542c1093
1 changed files with 4 additions and 0 deletions

View File

@ -1207,6 +1207,10 @@ function tags_checks_event_acl($id_user, $id_group, $access, $tags = array(), $c
$id_user = $config['id_user'];
}
if (users_is_admin($id_user)) {
return true;
}
$tags_user = tags_get_acl_tags($id_user, $id_group, $access, 'data', '', '', true, $childrens_ids, true);
// If there are wrong parameters or fail ACL check, return false
if ($tags_user === ERR_WRONG_PARAMETERS || $tags_user === ERR_ACL) {