From b186e79362f15b97b9bf842d9d4bcb4c85940b3f Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 1 Aug 2011 16:37:47 +0000 Subject: [PATCH] fixing r35871: status was not explicitly set to false (only to true) and therefore not editable --- calendar/inc/class.calendar_uiforms.inc.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/calendar/inc/class.calendar_uiforms.inc.php b/calendar/inc/class.calendar_uiforms.inc.php index e6df8e0342..304c7b3078 100644 --- a/calendar/inc/class.calendar_uiforms.inc.php +++ b/calendar/inc/class.calendar_uiforms.inc.php @@ -1317,15 +1317,9 @@ function replace_eTemplate_onsubmit() 'uid' => $member, 'status' => 'G', ); + $readonlys[$row.'[quantity]'] = $readonlys["delete[$member]"] = true; // read access is enough to invite participants, but you need edit rights to change status - if (!$this->bo->check_perms(EGW_ACL_EDIT,0,$member)) - { - $readonlys[$row.'[quantity]'] = $readonlys["delete[$member]"] =$readonlys[$row]['status']= true; - } - else - { - $readonlys[$row.'[quantity]'] = $readonlys["delete[$member]"] = true; - } + $readonlys[$row.'[status]'] = !$this->bo->check_perms(EGW_ACL_EDIT,0,$member); $content['participants'][$row++]['title'] = common::grab_owner_name($member); } }