forked from extern/egroupware
re-read the owner in check_perms, if it's not set
This commit is contained in:
parent
958a83a06d
commit
9e525b0989
@ -472,7 +472,7 @@ class bocontacts extends socontacts
|
||||
*/
|
||||
function check_perms($needed,$contact)
|
||||
{
|
||||
if (!is_array($contact) && !($contact = parent::read($contact)))
|
||||
if ((!is_array($contact) || !isset($contact['owner'])) && !($contact = parent::read($contact)))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user