Преглед на файлове

Update ProfileController

Daniel Supernault преди 6 години
родител
ревизия
74268874ca
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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 {