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:
@@ -66,7 +66,7 @@ class Tag extends Model
|
||||
$set = $query->get(['tags.*']);
|
||||
/** @var Tag $tag */
|
||||
foreach ($set as $tag) {
|
||||
if ($tag->tag == $fields['tag']) {
|
||||
if ($tag->tag === $fields['tag']) {
|
||||
return $tag;
|
||||
}
|
||||
}
|
||||
@@ -87,7 +87,7 @@ class Tag extends Model
|
||||
public static function routeBinder(Tag $value)
|
||||
{
|
||||
if (auth()->check()) {
|
||||
if ($value->user_id == auth()->user()->id) {
|
||||
if ($value->user_id === auth()->user()->id) {
|
||||
return $value;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user