mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-20 09:58:04 +02:00
Fix for editing private categories
This commit is contained in:
parent
18a524bd3e
commit
5bed43746f
@ -513,7 +513,7 @@ class categories
|
|||||||
// Load the application grants
|
// Load the application grants
|
||||||
if ($category['appname'] == $this->app_name && is_null($this->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
|
// 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_data' => is_array($values['data']) ? serialize($values['data']) : $values['data'],
|
||||||
'cat_parent' => $values['parent'],
|
'cat_parent' => $values['parent'],
|
||||||
'cat_access' => $values['access'],
|
'cat_access' => $values['access'],
|
||||||
'cat_owner' => $values['owner'],
|
'cat_owner' => isset($values['owner']) ? $values['owner'] : $this->account_id,
|
||||||
'cat_main' => $values['main'],
|
'cat_main' => $values['main'],
|
||||||
'cat_level' => $values['level'],
|
'cat_level' => $values['level'],
|
||||||
'last_mod' => time(),
|
'last_mod' => time(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user