This fixes the tests.

This commit is contained in:
James Cole
2017-07-15 22:41:57 +02:00
parent fa00ba2edd
commit 1d6ca91c01
5 changed files with 3 additions and 82 deletions

View File

@@ -58,7 +58,7 @@ class PiggyBank extends Model
public static function routeBinder(PiggyBank $value)
{
if (auth()->check()) {
if ($value->account->user_id === auth()->user()->id) {
if (intval($value->account->user_id) === auth()->user()->id) {
return $value;
}
}