Fix SyncML preferences

This commit is contained in:
Jörg Lehrke 2010-04-14 16:40:19 +00:00
parent 8687767403
commit c9cd0f4ce4
4 changed files with 14 additions and 8 deletions

View File

@ -256,6 +256,7 @@ class addressbook_sif extends addressbook_bo
$contact['owner'] = $GLOBALS['egw_info']['user']['account_primary_group'];
break;
case 'P':
case 'N':
case 0:
$contact['owner'] = $this->user;
break;

View File

@ -177,6 +177,7 @@ class addressbook_vcal extends addressbook_bo
$contact['owner'] = $GLOBALS['egw_info']['user']['account_primary_group'];
break;
case 'P':
case 'N':
case 0:
$contact['owner'] = $this->user;
break;

View File

@ -1669,14 +1669,16 @@ class calendar_ical extends calendar_boupdate
{
case 'G':
case 'P':
case 0:
$owner = $this->user;
break;
}
if (0 < (int)$owner && $this->check_perms(EGW_ACL_EDIT, 0, $owner))
default:
if ((int)$owner && $this->check_perms(EGW_ACL_EDIT, 0, $owner))
{
$this->calendarOwner = $owner;
}
}
}
if (!isset($this->productManufacturer) ||
$this->productManufacturer == '' ||
$this->productManufacturer == 'file')

View File

@ -1015,15 +1015,17 @@ class calendar_sif extends calendar_boupdate
{
case 'G':
case 'P':
case 0:
$owner = $this->user;
break;
}
if (0 < (int)$owner && $this->check_perms(EGW_ACL_EDIT, 0, $owner))
default:
if ((int)$owner && $this->check_perms(EGW_ACL_EDIT, 0, $owner))
{
$this->calendarOwner = $owner;
}
}
}
}
// store product name and software version for futher usage
if ($_productName)
{