Page restrictionCreated 2 months ago by cyno
Hi, So I'm trying to make a page only accessable when user is logged in. It's working on views/pages I created in a module, but not working for pages I created on the admin dashboard. I've tried restricting it in page options, which makes it disappear from the menu (I don't want that), also tried overriding the route in the theme service provider (not working either). Any ideas?
'profile' => [ 'anomaly.module.users::role' => [ 'user', 'admin', ], 'anomaly.module.users::redirect' => '/login', 'anomaly.module.users::message' => 'Please log in to continue.', 'uses' => 'Anomaly\PagesModule\Http\Controller\PagesController@view', ],