Bläddra i källkod

Prevent overriding 'pro' state variable in meet page

Vijayakrishnan Krishnan 4 år sedan
förälder
incheckning
6ee591c85f
1 ändrade filer med 1 tillägg och 2 borttagningar
  1. 1 2
      app/Http/Controllers/PracticeManagementController.php

+ 1 - 2
app/Http/Controllers/PracticeManagementController.php

@@ -60,9 +60,8 @@ class PracticeManagementController extends Controller
     // specific call handle (uid of client)
     public function meet(Request $request, $uid = false) {
         $session = AppSession::where('session_key', $request->cookie('sessionKey'))->first();
-        $pro = $session ? $session->pro : null;
         $client = !empty($uid) ? Client::where('uid', $uid)->first() : null;
-        return view('app.video.call', compact('session', 'pro', 'client'));
+        return view('app.video.call', compact('session', 'client'));
     }
 
     // ajax ep used by the video page