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
Should not we have a way to send params to access rules when configuring them as a controller's behaviour?
For example in your guide you are creating updateOwnPost rule which is expecting postId param. But we don't have a way to send this param when configuring rules this way:
Hi
Should not we have a way to send params to access rules when configuring them as a controller's behaviour?
For example in your guide you are creating
updateOwnPost
rule which is expectingpostId
param. But we don't have a way to send this param when configuring rules this way:In
AccessRule
class we just callcan()
method without any params.So
updatePost
will not resolve withupdateOwnPost
as we cannot sendpostId
.Is it a bad practice and i have to use the following right in the action?
I would prefer to keep all access assigning in one place.
The text was updated successfully, but these errors were encountered: