Acl::get_grants does not use Acl::read_repository and Acl::get_rights calls it automatic

This commit is contained in:
Ralf Becker 2017-04-06 09:48:44 +02:00
parent 627d968286
commit 32eba47ea3

View File

@ -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