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
It would be a nice touch if I was able to use a fourth argument in the assertion function to verify against single instances or other arbitrary custom data. Example, considering the current identity name to be Dezmond:
Hi!
I think you can pass an object as a first parameter and use data from it in the assertion.
The only thing that object should follow AclResourceInterface.
It would be a nice touch if I was able to use a fourth argument in the assertion function to verify against single instances or other arbitrary custom data. Example, considering the current identity name to be
Dezmond
:This would add way more flexibility to how one can use the
can
orisAllowed
functions and, if I'm not wrong, it doesn't break any current interface.I'd be happy to submit a PR implementing this feature.
Best.
The text was updated successfully, but these errors were encountered: