Index: /trunk/include/ws_functions.inc.php
===================================================================
--- /trunk/include/ws_functions.inc.php	(revision 10017)
+++ /trunk/include/ws_functions.inc.php	(revision 10061)
@@ -187,10 +187,10 @@
 function ws_getInfos($params, &$service)
 {
-  global $conf;
-  
-  if ($conf['show_version'] or is_admin())
-  {
-    $infos['version'] = PHPWG_VERSION;
-  }
+  if (!is_admin())
+  {
+    return new PwgError(403, 'Forbidden');
+  }
+
+  $infos['version'] = PHPWG_VERSION;
 	
   $query = 'SELECT COUNT(*) FROM '.IMAGES_TABLE.';';
@@ -232,5 +232,5 @@
 
   // unvalidated comments
-  if ($infos['nb_comments'] > 0 and is_admin())
+  if ($infos['nb_comments'] > 0)
   {
     $query = 'SELECT COUNT(*) FROM '.COMMENTS_TABLE.' WHERE validated=\'false\';';
