fixing r35871: status was not explicitly set to false (only to true) and therefore not editable

This commit is contained in:
Ralf Becker 2011-08-01 16:38:31 +00:00
parent 63762d89e5
commit f584a0a124

View File

@ -1288,15 +1288,9 @@ function replace_eTemplate_onsubmit()
'uid' => $member, 'uid' => $member,
'status' => 'G', 'status' => 'G',
); );
// 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.'[quantity]'] = $readonlys["delete[$member]"] = true;
} // read access is enough to invite participants, but you need edit rights to change status
$readonlys[$row.'[status]'] = !$this->bo->check_perms(EGW_ACL_EDIT,0,$member);
$content['participants'][$row++]['title'] = common::grab_owner_name($member); $content['participants'][$row++]['title'] = common::grab_owner_name($member);
} }
} }