From 5bed43746f77c6744b8facaf08bcc361a282019d Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 15 Jun 2011 14:20:43 +0000 Subject: [PATCH] Fix for editing private categories --- phpgwapi/inc/class.categories.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/class.categories.inc.php b/phpgwapi/inc/class.categories.inc.php index 4c89732990..b3f851d3ed 100644 --- a/phpgwapi/inc/class.categories.inc.php +++ b/phpgwapi/inc/class.categories.inc.php @@ -513,7 +513,7 @@ class categories // Load the application grants if ($category['appname'] == $this->app_name && is_null($this->grants)) { - $this->grants = $GLOBALS['egw']->acl->get_grants($this->app_name); + $this->grants = $GLOBALS['egw']->acl->get_grants($this->app_name,true); } // Check for ACL granted access, the self::GLOBAL_ACCOUNT user must not get access by ACL to keep old behaviour @@ -693,7 +693,7 @@ class categories 'cat_data' => is_array($values['data']) ? serialize($values['data']) : $values['data'], 'cat_parent' => $values['parent'], 'cat_access' => $values['access'], - 'cat_owner' => $values['owner'], + 'cat_owner' => isset($values['owner']) ? $values['owner'] : $this->account_id, 'cat_main' => $values['main'], 'cat_level' => $values['level'], 'last_mod' => time(),