Welcome Guest, Not a member yet? Register   Sign In
Protect certain pages in Shield?
#1

Hello,

What do I need to configure in Shield to allow browsing of my website before logging in?

Do not allow certain paths like cart unless they login.

Thanks
Reply
#2

(This post was last modified: 05-08-2024, 08:34 AM by xsPurX.)

Edit /Config/Filters.php
Code:
  public array $filters = [
        'group:admin,superadmin,user'  => ['before' => ['UserDashboard', 'UserDashboard/*', 'Order', 'Order/*']],
    ];

Just an example. you can put specfic functions as well just use controller/function
Reply
#3

(05-08-2024, 08:34 AM)xsPurX Wrote: Edit /Config/Filters.php
Code:
  public array $filters = [
        'group:admin,superadmin,user'  => ['before' => ['UserDashboard', 'UserDashboard/*', 'Order', 'Order/*']],
    ];

Just an example. you can put specfic functions as well just use controller/function

Thank you
Reply




Theme © iAndrew 2016 - Forum software by © MyBB