mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Strict comparisons.
This commit is contained in:
@@ -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 ($value->account->user_id === auth()->user()->id) {
|
||||
return $value;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user