re-read the owner in check_perms, if it's not set

This commit is contained in:
Ralf Becker 2006-07-09 06:09:32 +00:00
parent 958a83a06d
commit 9e525b0989

View File

@ -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;
}