From 53e7c66f515b12408e910424df2fe8a52658458b Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 18 Jun 2009 13:21:05 +0000 Subject: [PATCH] "fixed group invitations got changed to regular invitations, after inviting a second group" --- calendar/inc/class.calendar_uiforms.inc.php | 25 +++++++++------------ 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/calendar/inc/class.calendar_uiforms.inc.php b/calendar/inc/class.calendar_uiforms.inc.php index 1603bca961..d7fb5c999e 100644 --- a/calendar/inc/class.calendar_uiforms.inc.php +++ b/calendar/inc/class.calendar_uiforms.inc.php @@ -5,7 +5,7 @@ * @link http://www.egroupware.org * @package calendar * @author Ralf Becker - * @copyright (c) 2004-8 by RalfBecker-At-outdoor-training.de + * @copyright (c) 2004-9 by RalfBecker-At-outdoor-training.de * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License * @version $Id$ */ @@ -892,25 +892,20 @@ class calendar_uiforms extends calendar_ui $sel_options['status']['G'] = lang('Select one'); foreach($members as $member) { - if (!isset($participants[$member])) + if (!isset($participants[$member]) && $this->bo->check_perms(EGW_ACL_READ,0,$member)) { - //IF Readaccess you can also invite participants, but you can only change the status, if you have edit rights - if ($this->bo->check_perms(EGW_ACL_READ,0,$member) && !$this->bo->check_perms(EGW_ACL_EDIT,0,$member)) + $preserv['participants'][$row] = $content['participants'][$row] = array( + 'app' => 'Group invitation', + 'uid' => $member, + 'status' => 'G', + ); + // read access is enought to invite participants, but you edit rights to change status + if (!$this->bo->check_perms(EGW_ACL_EDIT,0,$member)) { - $preserv['participants'][$row] = $content['participants'][$row] = array( - 'app' => 'Group invitation', - 'uid' => $member, - 'status' => $status[0], - ); $readonlys[$row.'[quantity]'] = $readonlys["delete[$member]"] =$readonlys[$row]['status']= true; } - elseif ($this->bo->check_perms(EGW_ACL_EDIT,0,$member)) + else { - $preserv['participants'][$row] = $content['participants'][$row] = array( - 'app' => 'Group invitation', - 'uid' => $member, - 'status' => 'G', - ); $readonlys[$row.'[quantity]'] = $readonlys["delete[$member]"] = true; } $content['participants'][$row++]['title'] = $GLOBALS['egw']->common->grab_owner_name($member);