How can I block certain Sections? #690
Answered
by
datamweb
alfkoblischke
asked this question in
Q&A
-
I got Shield up and working. How can I block for instance my Controller "Help" for Users not logged in? There must be a global solution, without having to check for each function within the Controller. |
Beta Was this translation helpful? Give feedback.
Answered by
datamweb
Mar 23, 2023
Replies: 1 comment 1 reply
-
Hello, please see: If you want to protect a specific route, you can do the following: $routes->get('xxx', 'PayController::index', ['filter' => 'session']); |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
datamweb
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, please see:
https://codeigniter4.github.io/shield/install/#protect-all-pages
If you want to protect a specific route, you can do the following: