From b80ff955eb58abe3a81d8db06526fc7f95150664 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 6 Apr 2017 09:48:44 +0200 Subject: [PATCH] Acl::get_grants does not use Acl::read_repository and Acl::get_rights calls it automatic --- infolog/inc/class.infolog_bo.inc.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/infolog/inc/class.infolog_bo.inc.php b/infolog/inc/class.infolog_bo.inc.php index 57eff8cff8..605cd7a9f6 100644 --- a/infolog/inc/class.infolog_bo.inc.php +++ b/infolog/inc/class.infolog_bo.inc.php @@ -973,7 +973,7 @@ class infolog_bo { $values['info_from'] = $to_write['info_from'] = $this->link_id2from($values); } - + // create (and remove) links in custom fields if(!is_array($old)) { @@ -1677,7 +1677,6 @@ class infolog_bo $GLOBALS['egw']->preferences->__construct($user); $GLOBALS['egw_info']['user']['preferences'] = $GLOBALS['egw']->preferences->read_repository(); $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->so = new infolog_so($this->grants); // so caches it's filters