This repository was archived by the owner on Feb 7, 2025. It is now read-only.
Replies: 1 comment
-
In short, you're just missing the wiring between the permission in the database and the authorization check in your controller. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I have a problem but couldn't find a solution. I have a page with only 1 controller. This page does not have a db table and model. In this controller, the queries I want are running and giving me some reports. I can't naturally create a bread for these pages. So I can't see it on the role page. When I add permission manually, I see it on the role page, but it only shows and hides it in the menu, it has no effect on the authority of the page and I can enter the page.



When I add $this->authorize('browse_xxx') to the relevant function, it does not accept a permission named "browse_xxx", it says you are not authorized to login. How can I authorize a page that has no model and no table?
Beta Was this translation helpful? Give feedback.
All reactions