ActionEvents logs no longer applying Policies #6763
Unanswered
WillyReyno
asked this question in
Q&A
Replies: 4 comments
-
Laravel\Nova\Actions\ActionResource::$policy = ActionEventPolicy::class; |
Beta Was this translation helpful? Give feedback.
0 replies
-
setting the property to null should also work |
Beta Was this translation helpful? Give feedback.
0 replies
-
It works, thank you! Is there a recommended file/method to call this from? |
Beta Was this translation helpful? Give feedback.
0 replies
-
I would recommend on the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description:
Since upgrading to Laravel Nova 5, Policies no longer applies to Nova ActionEvents. All Nova users are able to see ActionEvent history of a resource regardless of the rules set in the Policy.
Tested with multiple Nova 5 versions.
Works fine with Laravel Nova 4.35.6.
Detailed steps to reproduce the issue on a fresh Nova installation:
Laravel\Nova\Actions\Actionable
trait to its ModelActionEventPolicy
and return false in every methodBeta Was this translation helpful? Give feedback.
All reactions