forked from extern/egroupware
Acl::get_grants does not use Acl::read_repository and Acl::get_rights calls it automatic
This commit is contained in:
parent
627d968286
commit
32eba47ea3
@ -966,7 +966,7 @@ class infolog_bo
|
|||||||
{
|
{
|
||||||
$values['info_from'] = $to_write['info_from'] = $this->link_id2from($values);
|
$values['info_from'] = $to_write['info_from'] = $this->link_id2from($values);
|
||||||
}
|
}
|
||||||
|
|
||||||
// create (and remove) links in custom fields
|
// create (and remove) links in custom fields
|
||||||
if(!is_array($old))
|
if(!is_array($old))
|
||||||
{
|
{
|
||||||
@ -1655,7 +1655,6 @@ class infolog_bo
|
|||||||
$GLOBALS['egw']->preferences->__construct($user);
|
$GLOBALS['egw']->preferences->__construct($user);
|
||||||
$GLOBALS['egw_info']['user']['preferences'] = $GLOBALS['egw']->preferences->read_repository();
|
$GLOBALS['egw_info']['user']['preferences'] = $GLOBALS['egw']->preferences->read_repository();
|
||||||
$GLOBALS['egw']->acl->__construct($user);
|
$GLOBALS['egw']->acl->__construct($user);
|
||||||
$GLOBALS['egw']->acl->read_repository();
|
|
||||||
$this->grants = $GLOBALS['egw']->acl->get_grants('infolog',$this->group_owners ? $this->group_owners : true);
|
$this->grants = $GLOBALS['egw']->acl->get_grants('infolog',$this->group_owners ? $this->group_owners : true);
|
||||||
$this->so = new infolog_so($this->grants); // so caches it's filters
|
$this->so = new infolog_so($this->grants); // so caches it's filters
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user