fix: Fix contacts account mismatch (#1625)

This commit is contained in:
Alexis Saettler
2018-08-01 23:28:05 +02:00
committed by GitHub
parent cd4ce7e547
commit 1c70d4ef24
46 changed files with 231 additions and 200 deletions
@@ -37,8 +37,7 @@ class IntroductionsController extends Controller
if ($request->get('metThroughId') !== null) {
try {
Contact::where('account_id', auth()->user()->account_id)
->where('id', $request->get('metThroughId'))
->firstOrFail();
->findOrFail($request->get('metThroughId'));
} catch (ModelNotFoundException $e) {
return $this->respondNotFound();
}