Author: ralfbecker
New Revision: 30461
URL: http://www.egroupware.org/viewvc/egroupware?rev=30461&view=rev
Log:
doing read (without acl check) first and then check acl on read event, to save reading it multiple times
Modified:
trunk/calendar/inc/class.calendar_groupdav.inc.php
Modified: trunk/calendar/inc/class.calendar_groupdav.inc.php
URL: http://www.egroupware.org/viewvc/egroupware/trunk/calendar/inc/class.calendar_groupdav.inc.php?rev=30461&r1=30460&r2=30461&view=diff
— trunk/calendar/inc/class.calendar_groupdav.inc.php (original)
+++ trunk/calendar/inc/class.calendar_groupdav.inc.php Tue Jun 1 11:22:06 2010
@@ -684,9 +684,9 @@
function 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'); -
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'])); }
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs