Skip to content

Commit

Permalink
feature 2060: remove adivser mode on web API methods imported from th…
Browse files Browse the repository at this point in the history
…e pwg.images.addSimple plugin

git-svn-id: http://piwigo.org/svn/trunk@8274 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
plegall committed Dec 23, 2010
1 parent ae5438f commit 55788d5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/ws_functions.inc.php
Expand Up @@ -1342,7 +1342,7 @@ function ws_images_add($params, &$service)
function ws_images_addSimple($params, &$service)
{
global $conf;
if (!is_admin() || is_adviser() )
if (!is_admin())
{
return new PwgError(401, 'Access denied');
}
Expand Down Expand Up @@ -1992,7 +1992,7 @@ function ws_images_setInfo($params, &$service)
function ws_images_delete($params, &$service)
{
global $conf;
if (!is_admin() || is_adviser() )
if (!is_admin())
{
return new PwgError(401, 'Access denied');
}
Expand Down Expand Up @@ -2243,7 +2243,7 @@ function ws_categories_setInfo($params, &$service)
function ws_categories_delete($params, &$service)
{
global $conf;
if (!is_admin() || is_adviser() )
if (!is_admin())
{
return new PwgError(401, 'Access denied');
}
Expand Down Expand Up @@ -2312,7 +2312,7 @@ function ws_categories_move($params, &$service)
{
global $conf, $page;

if (!is_admin() || is_adviser() )
if (!is_admin())
{
return new PwgError(401, 'Access denied');
}
Expand Down

0 comments on commit 55788d5

Please sign in to comment.