FIX: fix exception when accessing protected page
This commit is contained in:
@@ -47,7 +47,8 @@ class ContentPage extends Controller
|
||||
{
|
||||
// test if loaded page is visible or not
|
||||
if ($page->status == Content::STATUS_PROTECTED && !Auth::user()) {
|
||||
throw new \Exception('Cannot access protected resources');
|
||||
// throw new \Exception('Cannot access protected resources');
|
||||
abort(404);
|
||||
}
|
||||
|
||||
// add one new "view" for page
|
||||
|
||||
Reference in New Issue
Block a user