Which Umbraco version are you using?
16.0.0
Bug summary
I was testing something for #16329 and wanted to check how the backoffice now handles sending back member data even though a property might be sensitive. I had hoped to find that the property would be leaked in the API response, then hidden by the UI to make a point of how backwards the current approach with conditions would be.
Instead, I found this not implemented yet, at all. There is some logic in the backend the detect something is sensitive data, but at no point is the data filtered out if the logged in user has no access to sensitive data.
Specifics
No response
Steps to reproduce
- Change default member type and set the Comment field as sensitive.
- Create a member, type something in the Comment field and save.
- Switch to a user without the "Sensitive data" user group (I have even tested anything non-administrator)
- Go to the member
- Comment field shows up as per normal.
Expected result / actual result
The comment field is hidden, since it's tagged as sensitive and the current user has no right to view sensitive data.
On top of that, the sensitive data shouldn't even be in the response of the API endpoint!
This item has been added to our backlog AB#54282