From 4a182b494f02a1657bdd3297bab4039f8b339402 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 18 Nov 2018 21:49:38 -0700 Subject: [PATCH] Update StatusController --- app/Http/Controllers/StatusController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/StatusController.php b/app/Http/Controllers/StatusController.php index d8caf175f..fb5545c48 100644 --- a/app/Http/Controllers/StatusController.php +++ b/app/Http/Controllers/StatusController.php @@ -121,9 +121,7 @@ class StatusController extends Controller public function delete(Request $request) { - if (!Auth::check()) { - abort(403); - } + $this->authCheck(); $this->validate($request, [ 'type' => 'required|string', @@ -141,6 +139,8 @@ class StatusController extends Controller public function storeShare(Request $request) { + $this->authCheck(); + $this->validate($request, [ 'item' => 'required|integer', ]);