mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
ws_getVersion -> add test for admin , sendResponse -> add a trigger for debug ws
git-svn-id: http://piwigo.org/svn/trunk@9742 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -175,7 +175,7 @@ function ws_std_get_image_xml_attributes()
|
||||
function ws_getVersion($params, &$service)
|
||||
{
|
||||
global $conf;
|
||||
if ($conf['show_version'])
|
||||
if ($conf['show_version'] or is_admin() )
|
||||
return PHPWG_VERSION;
|
||||
else
|
||||
return new PwgError(403, 'Forbidden');
|
||||
|
||||
Reference in New Issue
Block a user