mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 00:58:55 +01:00
Only filter accounts by calendar permission, not groups
This commit is contained in:
parent
1d03c28ba0
commit
fbe3d2cc7d
@ -50,9 +50,13 @@ class calendar_owner_etemplate_widget extends etemplate_widget_taglist
|
|||||||
foreach($list as $type)
|
foreach($list as $type)
|
||||||
{
|
{
|
||||||
$account_options = array('account_type' => $type);
|
$account_options = array('account_type' => $type);
|
||||||
$accounts += accounts::link_query('',$account_options);
|
$accounts_type = accounts::link_query('',$account_options);
|
||||||
|
if($type == 'accounts')
|
||||||
|
{
|
||||||
|
$accounts_type = array_intersect_key($accounts_type, $GLOBALS['egw']->acl->get_grants('calendar'));
|
||||||
|
}
|
||||||
|
$accounts += $accounts_type;
|
||||||
}
|
}
|
||||||
$accounts = array_intersect_key($accounts, $GLOBALS['egw']->acl->get_grants('calendar'));
|
|
||||||
$sel_options += array_map(
|
$sel_options += array_map(
|
||||||
function($account_id, $account_name) {
|
function($account_id, $account_name) {
|
||||||
return array(
|
return array(
|
||||||
|
Loading…
Reference in New Issue
Block a user