Fix calendar participant does not show user accounts

This commit is contained in:
Hadi Nategh 2016-06-23 15:49:44 +02:00
parent 4d5daa4d3f
commit 1fab6876c4
2 changed files with 7 additions and 6 deletions

View File

@ -155,7 +155,7 @@ class calendar_owner_etemplate_widget extends Etemplate\Widget\Taglist
$account_options = $options + array('account_type' => $a_type);
$_results += Api\Accounts::link_query($query,$account_options);
}
$_results = array_intersect_key($_results, $GLOBALS['egw']->acl->get_grants('calendar'));
if (!$options['exec']['nocheckgrants']) $_results = array_intersect_key($_results, $GLOBALS['egw']->acl->get_grants('calendar'));
}
else if ($data['app'] && Link::get_registry($data['app'], 'query'))
{

View File

@ -1060,7 +1060,8 @@ app.classes.calendar = (function(){ "use strict"; return AppJS.extend(
start: content.start,
end: content.end,
duration: content.duration,
whole_day: content.whole_day
whole_day: content.whole_day,
nocheckgrants: true
}});
},