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', ]);