Fix SyncML preferences

This commit is contained in:
Jörg Lehrke 2010-04-14 16:40:54 +00:00
parent ae0bd0a0b7
commit 2b9198e8f7
2 changed files with 14 additions and 8 deletions

View File

@ -1799,13 +1799,16 @@ class calendar_ical extends calendar_boupdate
{
case 'G':
case 'P':
case 0:
$owner = $this->user;
}
if (0 < (int)$owner && $this->check_perms(EGW_ACL_EDIT, 0, $owner))
break;
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

@ -1217,14 +1217,17 @@ class calendar_sif extends calendar_boupdate
{
case 'G':
case 'P':
case 0:
$owner = $this->user;
}
if (0 < (int)$owner && $this->check_perms(EGW_ACL_EDIT, 0, $owner))
break;
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)
{