keeping infolog_bo::$ignore_acl within the class

This commit is contained in:
Ralf Becker 2013-02-07 09:28:31 +00:00
parent 03aeacf69d
commit 0dc3e5ab6f
2 changed files with 3 additions and 5 deletions

View File

@ -114,7 +114,7 @@ class infolog_bo
*/ */
var $tracking; var $tracking;
/** /**
* Variable used to tell read functions to ignore the acl * Variable used to tell read function to ignore the acl
* used in async_notification; * used in async_notification;
* *
* @var ignore_acl * @var ignore_acl
@ -599,7 +599,7 @@ class infolog_bo
} }
$info_id = $data['info_id']; // in case the uid was specified $info_id = $data['info_id']; // in case the uid was specified
if (!$ignore_acl && !$this->check_access($data,EGW_ACL_READ)) // check behind read, to prevent a double read if (!(self::$ignore_acl || $ignore_acl) && !$this->check_access($data,EGW_ACL_READ)) // check behind read, to prevent a double read
{ {
return False; return False;
} }

View File

@ -41,9 +41,7 @@ class infolog_egw_record implements importexport_iface_egw_record
$this->identifier = $_identifier; $this->identifier = $_identifier;
if(self::$bo == null) self::$bo = new infolog_bo(); if(self::$bo == null) self::$bo = new infolog_bo();
if($_identifier) { if($_identifier) {
$lia = false; $rec = self::$bo->read($this->identifier);
if (isset(infolog_bo::$ignore_acl)) $lia = infolog_bo::$ignore_acl;
$rec = self::$bo->read($this->identifier,true,'ts',$lia);
if (is_array($rec)) $this->set_record($rec); if (is_array($rec)) $this->set_record($rec);
} }
} }