mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 17:23:04 +02:00
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
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user