From 98575180c52f6d3dfda5fc2e62d0af473e78773d Mon Sep 17 00:00:00 2001 From: Christian Binder Date: Fri, 27 Nov 2009 08:04:29 +0000 Subject: [PATCH] give calendar owner the CHAIR role if we have ADD ACLs for the owners calendar --- calendar/inc/class.calendar_uiforms.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/calendar/inc/class.calendar_uiforms.inc.php b/calendar/inc/class.calendar_uiforms.inc.php index 4b043059ba..7138a1150a 100644 --- a/calendar/inc/class.calendar_uiforms.inc.php +++ b/calendar/inc/class.calendar_uiforms.inc.php @@ -126,7 +126,8 @@ class calendar_uiforms extends calendar_ui if (is_numeric($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]])) {