mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
only add readonly entries if required, saves some time/transfer volumn for hughe participant lists
This commit is contained in:
parent
e5b3a83693
commit
19035cc6e4
@ -1424,8 +1424,10 @@ class calendar_uiforms extends calendar_ui
|
||||
$content['participants'][$row]['delete_id'] = strpbrk($uid,'"\'<>') !== false ? md5($uid) : $uid;
|
||||
//echo "<p>$uid ($quantity): $role --> {$content['participants'][$row]['role']}</p>\n";
|
||||
|
||||
$readonlys['participants'][$row]['status'] = !$this->bo->check_status_perms($uid,$event);
|
||||
$readonlys['participants']['delete'][$uid] = $preserv['hide_delete'] || !$this->bo->check_perms(EGW_ACL_EDIT,$event);
|
||||
if (!$this->bo->check_status_perms($uid,$event))
|
||||
$readonlys['participants'][$row]['status'] = true;
|
||||
if ($preserv['hide_delete'] || !$this->bo->check_perms(EGW_ACL_EDIT,$event))
|
||||
$readonlys['participants']['delete'][$uid] = true;
|
||||
// todo: make the participants available as links with email as title
|
||||
$content['participants'][$row++]['title'] = $this->get_title($uid);
|
||||
// enumerate group-invitations, so people can accept/reject them
|
||||
@ -1446,7 +1448,8 @@ class calendar_uiforms extends calendar_ui
|
||||
);
|
||||
$readonlys['participants'][$row]['quantity'] = $readonlys['participants']['delete'][$member] = true;
|
||||
// read access is enough to invite participants, but you need edit rights to change status
|
||||
$readonlys['participants'][$row]['status'] = !$this->bo->check_perms(EGW_ACL_EDIT,0,$member);
|
||||
if (!$this->bo->check_perms(EGW_ACL_EDIT,0,$member))
|
||||
$readonlys['participants'][$row]['status'] = true;
|
||||
//$readonlys[$row.'[status]'] = !$this->bo->check_perms(EGW_ACL_EDIT,0,$member);
|
||||
$content['participants'][$row++]['title'] = common::grab_owner_name($member);
|
||||
}
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user