fix long standing issue in is_owner() - mailto is a subarray of organizer.

This commit is contained in:
mgalgoci 2004-08-25 15:27:25 +00:00
parent 1b32fe33fd
commit b356444f24

View File

@ -2907,7 +2907,7 @@
function is_owner($part_record)
{
if(($part_record['user'].'@'.$part_record['host'] == $GLOBALS['phpgw_info']['user']['preferences']['email']['address']) ||
if(($part_record['mailto']['user'].'@'.$part_record['mailto']['host'] == $GLOBALS['phpgw_info']['user']['preferences']['email']['address']) ||
($part_record['cn'] == $GLOBALS['phpgw_info']['user']['account_lid']))
{
return True;