mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 08:23:12 +01:00
keeping infolog_bo::$ignore_acl within the class
This commit is contained in:
parent
df10e1cbb1
commit
7b72ea3b06
@ -114,7 +114,7 @@ class infolog_bo
|
||||
*/
|
||||
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;
|
||||
*
|
||||
* @var ignore_acl
|
||||
@ -599,7 +599,7 @@ class infolog_bo
|
||||
}
|
||||
$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;
|
||||
}
|
||||
|
@ -41,9 +41,7 @@ class infolog_egw_record implements importexport_iface_egw_record
|
||||
$this->identifier = $_identifier;
|
||||
if(self::$bo == null) self::$bo = new infolog_bo();
|
||||
if($_identifier) {
|
||||
$lia = false;
|
||||
if (isset(infolog_bo::$ignore_acl)) $lia = infolog_bo::$ignore_acl;
|
||||
$rec = self::$bo->read($this->identifier,true,'ts',$lia);
|
||||
$rec = self::$bo->read($this->identifier);
|
||||
if (is_array($rec)) $this->set_record($rec);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user