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

All Properties of Model are Visible when using $gdprVisible #14

Closed
matcartmill-old opened this issue Jul 9, 2018 · 0 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@matcartmill-old
Copy link

In my User model I have protected $gdprVisible = ['name', 'email'];, yet in the JSON output I see

{"id":22,"name":"John Doe","email":"john.doe@testemail.com","created_at":"2018-07-09 14:52:02","updated_at":"2018-07-09 14:52:02","stripe_id":null,"card_brand":null,"card_last_four":null,"trial_ends_at":null,"provider":null,"provider_id":null}

The docs say that anything NOT in the white-list will be hidden, but I don't see this as being the case.

Also, any models included via relationship are also displaying their entire contents.

@sander3 sander3 self-assigned this Jul 23, 2018
@sander3 sander3 added the bug Something isn't working label Jul 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants