mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
feature 2976: add 'display' parameter for pwg.users.getList
git-svn-id: http://piwigo.org/svn/trunk@25196 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -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'),
|
||||
),
|
||||
'<b>Admin only.</b> Retrieves a list of all the users.',
|
||||
'<b>Admin only.</b> Retrieves a list of all the users.
|
||||
<br>"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),
|
||||
|
||||
Reference in New Issue
Block a user