give calendar owner the CHAIR role if we have ADD ACLs for the owners calendar

This commit is contained in:
Christian Binder 2009-11-27 08:04:29 +00:00
parent 3d93128777
commit 98575180c5

View File

@ -126,7 +126,8 @@ class calendar_uiforms extends calendar_ui
if (is_numeric($uid)) if (is_numeric($uid))
{ {
$participants[$uid] = $participant_types['u'][$uid] = $participants[$uid] = $participant_types['u'][$uid] =
calendar_so::combine_status($uid == $this->user ? 'A' : 'U',1,$uid == $this->user ? 'CHAIR' : 'REQ-PARTICIPANT'); calendar_so::combine_status($uid == $this->user ? 'A' : 'U',1,
($uid == $this->user || ($uid == $owner && $this->bo->check_perms(EGW_ACL_ADD,0,$owner))) ? 'CHAIR' : 'REQ-PARTICIPANT');
} }
elseif (is_array($this->bo->resources[$uid[0]])) elseif (is_array($this->bo->resources[$uid[0]]))
{ {