forked from extern/egroupware
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)
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user