From 1996dadfe7253b3c2bcb946cb76d6f24b0a67f04 Mon Sep 17 00:00:00 2001 From: mistic100 Date: Mon, 28 Oct 2013 17:53:36 +0000 Subject: feature 2976: add 'display' parameter for pwg.users.getList git-svn-id: http://piwigo.org/svn/trunk@25196 68402e56-0260-453c-a942-63ccdbb3a9ee --- ws.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'ws.php') diff --git a/ws.php b/ws.php index 959722a26..f60203762 100644 --- a/ws.php +++ b/ws.php @@ -811,8 +811,11 @@ function ws_addDefaultMethods( $arr ) 'type'=>WS_TYPE_INT|WS_TYPE_POSITIVE), 'order' => array('default'=>'id', 'info'=>'id, username, level, email'), + 'display' => array('default'=>'basics', + 'info'=>'all,basics,none,username,email,status,level,groups,language,theme,nb_image_page,recent_period,expand,show_nb_comments,show_nb_hits,enabled_high'), ), - 'Admin only. Retrieves a list of all the users.', + 'Admin only. Retrieves a list of all the users. +
"display" controls which data are returned, "basics" stands for "username,email,status,level,groups"', null, array('admin_only'=>true) ); @@ -852,7 +855,7 @@ function ws_addDefaultMethods( $arr ) 'password' => array('flags'=>WS_PARAM_OPTIONAL), 'email' => array('flags'=>WS_PARAM_OPTIONAL), 'status' => array('flags'=>WS_PARAM_OPTIONAL, - 'info'=>'generic,normal,admin'), + 'info'=>'guest,generic,normal,admin,webmaster'), 'level'=> array('flags'=>WS_PARAM_OPTIONAL, 'maxValue'=>max($conf['available_permission_levels']), 'type'=>WS_TYPE_INT|WS_TYPE_POSITIVE), -- cgit v1.2.3