forked from extern/egroupware
fix long standing issue in is_owner() - mailto is a subarray of organizer.
This commit is contained in:
parent
a806550d64
commit
db7cd1697e
@ -2907,7 +2907,7 @@
|
|||||||
|
|
||||||
function is_owner($part_record)
|
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']))
|
($part_record['cn'] == $GLOBALS['phpgw_info']['user']['account_lid']))
|
||||||
{
|
{
|
||||||
return True;
|
return True;
|
||||||
|
Loading…
Reference in New Issue
Block a user