You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
If you have a Model with a relationship defined, that relationship will always be visible / exposed, even if you define hidden or visible on the model
How to reproduce
Add relationship to a Laravel Model (for example roles) and put it inside the $hidden array on your model.
The text was updated successfully, but these errors were encountered:
toitzi
added a commit
to toitzi/core
that referenced
this issue
Sep 27, 2024
Check if is in visible or hidden (if exists) just like with regular proeprties
Closes: api-platform#6678
Signed-off-by: Tobias Oitzinger <tobiasoitzinger@gmail.com>
Check if is in visible or hidden (if exists) just like with regular proeprties
Closes: api-platform#6678
Signed-off-by: Tobias Oitzinger <tobiasoitzinger@gmail.com>
soyuka
pushed a commit
to toitzi/core
that referenced
this issue
Oct 4, 2024
Check if is in visible or hidden (if exists) just like with regular proeprties
Closes: api-platform#6678
Signed-off-by: Tobias Oitzinger <tobiasoitzinger@gmail.com>
API Platform version(s) affected: 4.0.1
Description
If you have a Model with a relationship defined, that relationship will always be visible / exposed, even if you define
hidden
orvisible
on the modelHow to reproduce
Add relationship to a Laravel Model (for example
roles
) and put it inside the$hidden
array on your model.The text was updated successfully, but these errors were encountered: