diff options
Diffstat (limited to 'include/ws_functions.inc.php')
-rw-r--r-- | include/ws_functions.inc.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/ws_functions.inc.php b/include/ws_functions.inc.php index f628cf520..7f587f6ac 100644 --- a/include/ws_functions.inc.php +++ b/include/ws_functions.inc.php @@ -2307,6 +2307,11 @@ function ws_categories_add($params, &$service) if ( !empty($params['status']) and in_array($params['status'], array('private','public')) ) { $updates['status'] = $params['status']; + + if ('private' == $updates['status']) + { + add_permission_on_category($creation_output['id'], get_admins()); + } } if ( !empty($params['visible']) and in_array($params['visible'], array('true','false')) ) { |