1
0
Fork 0

Update ProfileController

This commit is contained in:
Daniel Supernault 2019-02-21 23:08:06 -07:00
parent e5b7c3c97d
commit 74268874ca
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 1 additions and 1 deletions

View File

@ -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 {