Selaa lähdekoodia

Update ProfileController

Daniel Supernault 6 vuotta sitten
vanhempi
commit
74268874ca
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      app/Http/Controllers/ProfileController.php

+ 1 - 1
app/Http/Controllers/ProfileController.php

@@ -19,7 +19,7 @@ class ProfileController extends Controller
 {
     public function show(Request $request, $username)
     {
-        $user = Profile::whereUsername($username)->firstOrFail();
+        $user = Profile::whereNull('domain')->whereUsername($username)->firstOrFail();
         if($user->status != null) {
             return $this->accountCheck($user);
         } else {