-
I made a RolePolicy with a with viewAny return false
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I think we'd need to see more of your application code. Perhaps even create a simple demo application that shows what you're trying to do specifically in this regard. Chances are it's related to your policy not being loaded/detected, and/or your controller or routes/middleware code. |
Beta Was this translation helpful? Give feedback.
-
Yes it was due to the policy not being loaded correctly. |
Beta Was this translation helpful? Give feedback.
I think we'd need to see more of your application code. Perhaps even create a simple demo application that shows what you're trying to do specifically in this regard.
Chances are it's related to your policy not being loaded/detected, and/or your controller or routes/middleware code.