Browse Source

Update InternalApiController, limit remote profile ui to remote profiles

Daniel Supernault 5 năm trước cách đây
mục cha
commit
d918a68e8b
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      app/Http/Controllers/InternalApiController.php

+ 1 - 0
app/Http/Controllers/InternalApiController.php

@@ -422,6 +422,7 @@ class InternalApiController extends Controller
     public function remoteProfile(Request $request, $id)
     {
         $profile = Profile::whereNull('status')
+            ->whereNotNull('domain')
             ->findOrFail($id);
         $user = Auth::user();