Skip to content

Commit

Permalink
feature 2657: make sure admins can access the new category (see r11727)
Browse files Browse the repository at this point in the history
git-svn-id: http://piwigo.org/svn/trunk@15851 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
mistic100 committed Jun 20, 2012
1 parent 07c7470 commit c8d097d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/ws_functions.inc.php
Expand Up @@ -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')) )
{
Expand Down

0 comments on commit c8d097d

Please sign in to comment.