feature 2657: make sure admins can access the new category (see r11727)
git-svn-id: http://piwigo.org/svn/trunk@15851 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
07c7470584
commit
c8d097d3f8
1 changed files with 5 additions and 0 deletions
|
|
@ -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')) )
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue