diff options
author | plegall <plg@piwigo.org> | 2013-11-13 12:58:21 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2013-11-13 12:58:21 +0000 |
commit | b9233b8343509c0de1abee3fc5465a5bd177efda (patch) | |
tree | d3552c4242c45ec98bdb22976f259624b4eed385 /ws.php | |
parent | 892fdb202e33bf74dafdc74363258dbce00d1699 (diff) |
feature 2976: ability to set group association with pwg.users.setInfo
git-svn-id: http://piwigo.org/svn/trunk@25474 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'ws.php')
-rw-r--r-- | ws.php | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -884,6 +884,7 @@ enabled_high, registration_date, registration_date_string, registration_date_sin 'type'=>WS_TYPE_INT|WS_TYPE_POSITIVE), 'language' => array('flags'=>WS_PARAM_OPTIONAL), 'theme' => array('flags'=>WS_PARAM_OPTIONAL), + 'group_id' => array('flags'=>WS_PARAM_OPTIONAL|WS_PARAM_FORCE_ARRAY, 'type'=>WS_TYPE_INT), // bellow are parameters removed in a future version 'nb_image_page' => array('flags'=>WS_PARAM_OPTIONAL, 'type'=>WS_TYPE_INT|WS_TYPE_POSITIVE|WS_TYPE_NOTNULL), @@ -899,7 +900,8 @@ enabled_high, registration_date, registration_date_string, registration_date_sin 'type'=>WS_TYPE_BOOL), ), 'Updates a user. Leave a field blank to keep the current value. -<br>"username", "password" and "email" are ignored if "user_id" is an array.', +<br>"username", "password" and "email" are ignored if "user_id" is an array. +<br>set "group_id" to -1 if you want to dissociate users from all groups', $ws_functions_root . 'pwg.users.php', array('admin_only'=>true, 'post_only'=>true) ); |