forked from extern/egroupware
fixed with klaus the Group initation behavior, Readaccess you can also invite participants, but you can only change the status, if you have edit rights
This commit is contained in:
parent
6aaf8e1d84
commit
ca6164f5ce
@ -892,14 +892,27 @@ class calendar_uiforms extends calendar_ui
|
|||||||
$sel_options['status']['G'] = lang('Select one');
|
$sel_options['status']['G'] = lang('Select one');
|
||||||
foreach($members as $member)
|
foreach($members as $member)
|
||||||
{
|
{
|
||||||
if (!isset($participants[$member]) && $this->bo->check_perms(EGW_ACL_EDIT,0,$member))
|
if (!isset($participants[$member]))
|
||||||
{
|
{
|
||||||
$preserv['participants'][$row] = $content['participants'][$row] = array(
|
//IF Readaccess you can also invite participants, but you can only change the status, if you have edit rights
|
||||||
'app' => 'Group invitation',
|
if ($this->bo->check_perms(EGW_ACL_READ,0,$member) && !$this->bo->check_perms(EGW_ACL_EDIT,0,$member))
|
||||||
'uid' => $member,
|
{
|
||||||
'status' => 'G',
|
$preserv['participants'][$row] = $content['participants'][$row] = array(
|
||||||
);
|
'app' => 'Group invitation',
|
||||||
$readonlys[$row.'[quantity]'] = $readonlys["delete[$member]"] = true;
|
'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))
|
||||||
|
{
|
||||||
|
$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);
|
$content['participants'][$row++]['title'] = $GLOBALS['egw']->common->grab_owner_name($member);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user