diff --git a/src/Http/Controllers/PostsController.php b/src/Http/Controllers/PostsController.php index 401dac2..9847d1e 100644 --- a/src/Http/Controllers/PostsController.php +++ b/src/Http/Controllers/PostsController.php @@ -21,9 +21,7 @@ public function show(Request $request, $slug) { $post = Post::where('slug', $slug)->where('type', 'post')->firstOrFail(); - dd($post->password); - - if (!$request->password && $post->password && !$request->session()->get("post-pw-{$post->id}")) { + if (!$request->password && $post->password_protected && $post->password && !$request->session()->get("post-pw-{$post->id}")) { return view('gazette::password'); }