Explorar el Código

Prevent overriding 'pro' state variable in meet page

Vijayakrishnan Krishnan hace 4 años
padre
commit
6ee591c85f
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  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