We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
We should customize the API so that Contributors shouldn't be able to get sensitive information (such as emails) of other Contributors.
Background of the issue: #133
The text was updated successfully, but these errors were encountered:
I want to filter out email and username fields in the response of GET /users endpoint.
email
username
GET /users
First I thought of overriding the default controller action, something like what I have done here:
publish/publish-backend/src/api/post/controllers/post.js
Line 17 in a27fc5e
But the difficulty is, GET /users endpoint is provided by users-permissions plugin so it's different from other core controllers such as post and tag.
post
tag
I'm now looking into these approaches (haven't been successful yet):
Extending a plugin's interface
Sorry, something went wrong.
What I have found so far:
default users-permissions plugin
/users
isOwn
protected-populate plugin
sidemt
Successfully merging a pull request may close this issue.
We should customize the API so that Contributors shouldn't be able to get sensitive information (such as emails) of other Contributors.
Background of the issue: #133
The text was updated successfully, but these errors were encountered: