Skip to content
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

[4.1][webservices] post user fix editable on frontend only #37030

Closed
wants to merge 3 commits into from
Closed

[4.1][webservices] post user fix editable on frontend only #37030

wants to merge 3 commits into from

Conversation

alikon
Copy link
Contributor

@alikon alikon commented Feb 14, 2022

Pull Request for Issue #36936 .

Summary of Changes

if editable only on frontend allow the post from the webservices like from admin

Testing Instructions

Set a User->Field (Phone as an example) to 'Required'="yes", AND 'Editable In'="Site"

Create a user with REST API:
POST: {{base_url}}/{{base_path}}/users

BODY:
{"block":"0","email":"bob.smith@test.com","groups":["2"],"lastResetTime":"","lastvisitDate":"","name":"Bob Smith","params":{"admin_language":"","admin_style":"","editor":"","helpsite":"","language":"","timezone":""},"password":"qwerty1235%%##","password2":"qwerty1235%%##","registerDate":"","requireReset":"0","resetCount":"0","sendEmail":"0","username":"bobsmith"}

Actual result BEFORE applying this Pull Request

error
"title": "Invalid field: phone"

Expected result AFTER applying this Pull Request

able to create user

@alikon alikon changed the title fix editable on frontend only [4.1][webservices] post user fix editable on frontend only Feb 14, 2022
@nbradshaw45
Copy link

Test passed

@alikon alikon reopened this Mar 21, 2022
@alikon alikon closed this May 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants