# R35320 - /trunk/phpgwapi/inc/class.categories.inc.php

**URL:** <https://help.egroupware.org/t/r35320-trunk-phpgwapi-inc-class-categories-inc-php/47918>\
**Category:** eGW-svn\
**Created:** [June 15, 2011, 2:20pm UTC](https://help.egroupware.org/t/r35320-trunk-phpgwapi-inc-class-categories-inc-php/47918 "2011-06-15T14:20:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nathangray](https://help.egroupware.org/letter_avatar_proxy/v4/letter/n/77aa72/32.png) [@nathangray](https://help.egroupware.org/u/nathangray)\
**Post date:** [June 15, 2011, 2:20pm UTC](https://help.egroupware.org/t/r35320-trunk-phpgwapi-inc-class-categories-inc-php/47918/1 "2011-06-15T14:20:43Z")

</div>

Author: nathangray  
New Revision: 35320

URL: [http://svn.stylite.de/viewvc/egroupware?rev=35320&view=rev](http://svn.stylite.de/viewvc/egroupware?rev=35320&view=rev)  
Log:  
Fix for editing private categories

Modified:  
trunk/phpgwapi/inc/class.categories.inc.php

# Modified: trunk/phpgwapi/inc/class.categories.inc.php URL: [http://svn.stylite.de/viewvc/egroupware/trunk/phpgwapi/inc/class.categories.inc.php?rev=35320&r1=35319&r2=35320&view=diff](http://svn.stylite.de/viewvc/egroupware/trunk/phpgwapi/inc/class.categories.inc.php?rev=35320&r1=35319&r2=35320&view=diff)

— trunk/phpgwapi/inc/class.categories.inc.php (original)  
+++ trunk/phpgwapi/inc/class.categories.inc.php Wed Jun 15 16:20:43 2011  
@@ -513,7 +513,7 @@  
// 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 @@  
‘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(),

```

* * *

EditLive Enterprise is the world’s most technically advanced content  
authoring tool. Experience the power of Track Changes, Inline Image  
Editing and ensure content is compliant with Accessibility Checking.  
[http://p.sf.net/sfu/ephox-dev2dev](http://p.sf.net/sfu/ephox-dev2dev)

* * *

eGroupWare-cvs mailing list  
[eGroupWare-cvs@lists.sourceforge.net](mailto:eGroupWare-cvs@lists.sourceforge.net)  
[https://lists.sourceforge.net/lists/listinfo/egroupware-cvs](https://lists.sourceforge.net/lists/listinfo/egroupware-cvs)
