mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
doing read (without acl check) first and then check acl on read event, to save reading it multiple times
This commit is contained in:
parent
586a58a4e7
commit
a7fd927ae7
@ -684,9 +684,9 @@ error_log(__METHOD__."($path,,".array2string($start).") filter=".array2string($f
|
|||||||
function read($id)
|
function read($id)
|
||||||
{
|
{
|
||||||
if ($this->debug > 1) error_log("bo-ical read :$id:");
|
if ($this->debug > 1) error_log("bo-ical read :$id:");
|
||||||
if (!($retval = $this->bo->check_perms(EGW_ACL_FREEBUSY, $id, 0, 'server'))) return $retval;
|
|
||||||
$event = $this->bo->read($id, null, true, 'server');
|
$event = $this->bo->read($id, null, true, 'server');
|
||||||
if (!$this->bo->check_perms(EGW_ACL_READ, $id, 0, 'server'))
|
if (!($retval = $this->bo->check_perms(EGW_ACL_FREEBUSY, $event, 0, 'server'))) return $retval;
|
||||||
|
if (!$this->bo->check_perms(EGW_ACL_READ, $event, 0, 'server'))
|
||||||
{
|
{
|
||||||
$this->bo->clear_private_infos($event, array($this->bo->user, $event['owner']));
|
$this->bo->clear_private_infos($event, array($this->bo->user, $event['owner']));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user