Browse Source

Update StatusController

Daniel Supernault 6 năm trước cách đây
mục cha
commit
4a182b494f
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      app/Http/Controllers/StatusController.php

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