aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2010-12-23 23:15:24 +0000
committerplegall <plg@piwigo.org>2010-12-23 23:15:24 +0000
commit55788d58757c40f9c7d4704b19f333e6f2ee5cdc (patch)
tree34fa161780fc3e1cefd86d04b985b74bc70bebc5 /include
parentae5438fbcef2764ad86261c0468c2c695a14aba4 (diff)
feature 2060: remove adivser mode on web API methods imported from the pwg.images.addSimple plugin
git-svn-id: http://piwigo.org/svn/trunk@8274 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/ws_functions.inc.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/ws_functions.inc.php b/include/ws_functions.inc.php
index 0bbab914f..b617779d5 100644
--- a/include/ws_functions.inc.php
+++ b/include/ws_functions.inc.php
@@ -1342,7 +1342,7 @@ SELECT
function ws_images_addSimple($params, &$service)
{
global $conf;
- if (!is_admin() || is_adviser() )
+ if (!is_admin())
{
return new PwgError(401, 'Access denied');
}
@@ -1992,7 +1992,7 @@ SELECT *
function ws_images_delete($params, &$service)
{
global $conf;
- if (!is_admin() || is_adviser() )
+ if (!is_admin())
{
return new PwgError(401, 'Access denied');
}
@@ -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');
}
@@ -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');
}