mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
need to check type, not account_id to detected "default" or "forced" prefs
This commit is contained in:
parent
349630ffa7
commit
448241f596
@ -1576,7 +1576,7 @@ END:VTIMEZONE
|
||||
function settings($hook_data)
|
||||
{
|
||||
$cals = array();
|
||||
if (!$hook_data['setup'] && is_numeric($hook_data['account_id']))
|
||||
if (!$hook_data['setup'] && in_array($hook_data['type'], array('user', 'group')))
|
||||
{
|
||||
foreach (calendar_bo::list_calendars($hook_data['account_id']) as $entry)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user