-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add possibility to update the account.visibility field via the user endpoint #134
Comments
I have been digging around in the code, trying to see if there was an easy fix to this one. I might very well be wrong, as PHP is not my cup of tea. However, I can not see anywhere in the REST module where this value should be, and is missing. So, the fact that the visibility field is not updated might be due to a bug in HumHub itself. https://github.com/introspectionism/rest/blob/master/controllers/user/UserController.php |
Currently this field is not implemented in the REST API. |
…rty in the "Update an existing user" endpoint
I had to add I hope adding this scenario doesn't prevent other property from loading when updating a user with the REST API, but it don't think it does. An alternative would be to remove the Thanks @introspectionism for financing this development. |
@luke- @marc-farre I have done this core PR humhub/humhub#6577 because here https://github.com/humhub/humhub/pull/6577/files#diff-d3a4745ae7c92bb2ed3212a38c146f5f29268cf40a693d007f752f679a1f52abL163 we had the wrong I find here https://github.com/humhub/humhub/blob/master/protected/humhub/modules/admin/controllers/UserController.php#L111 we have a condition:
It is used to allow update the columns |
@yurabakhtin I've merged the core PR. The 1.14.4 should be released soon. |
Thanks @yurabakhtin |
…user Enh #134: Implementation of the user account `visibility` property in the "Update an existing user" endpoint
Thanks @luke- and @yurabakhtin . |
Thank you, guys! |
It should be possible to update the
visibility
value via the user endpoint. Today, when you try updating theaccount.visibility
value, nothing happens.Example code (Python) that should work:
The text was updated successfully, but these errors were encountered: