Sfoglia il codice sorgente

Log-in-as admin fix

Vijayakrishnan 3 anni fa
parent
commit
88dcd2ef2e
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      app/Http/Controllers/HomeController.php

+ 2 - 2
app/Http/Controllers/HomeController.php

@@ -1035,8 +1035,8 @@ WHERE measurement.label NOT IN ('SBP', 'DBP')
             return redirect()->to(route('dashboard'));
         }
 
-        // TODO @VJ pls fix XXX, we want to log in as admins
-        $pros =  Pro::where('pro_type', '!=', 'ADMINXXX');
+        // dummy condition to get the chain-ability going
+        $pros =  Pro::where('id', '>', 0);
 
         if($request->input('q')) {
             $nameQuery = '%' . $request->input('q') . '%';