mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
keeping infolog_bo::$ignore_acl within the class
This commit is contained in:
parent
03aeacf69d
commit
0dc3e5ab6f
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user