This repository has been 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
-
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.
![1](https://user-images.githubusercontent.com/6942826/136369840-fb9a5ecd-a98a-4372-83bb-781d96c53060.png)
![3](https://user-images.githubusercontent.com/6942826/136370182-08f96cd5-08be-4835-994e-04cd9682119a.png)
![4](https://user-images.githubusercontent.com/6942826/136370194-a936c7c4-a864-4b50-8de7-d8150cf40fed.png)
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