mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-27 08:19:45 +01:00
an other fix for check_perms (used via SyncML)
This commit is contained in:
parent
2dac413bc8
commit
6e0605899e
@ -472,7 +472,8 @@ class bocontacts extends socontacts
|
|||||||
*/
|
*/
|
||||||
function check_perms($needed,$contact)
|
function check_perms($needed,$contact)
|
||||||
{
|
{
|
||||||
if ((!is_array($contact) || !isset($contact['owner'])) && !($contact = parent::read($contact)))
|
if ((!is_array($contact) || !isset($contact['owner'])) &&
|
||||||
|
!($contact = parent::read(is_array($contact) ? $contact['id'] : $contact)))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user