mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Code clean up.
This commit is contained in:
@@ -62,7 +62,6 @@ class Attachment extends Model
|
||||
public static function routeBinder(Attachment $value)
|
||||
{
|
||||
if (auth()->check()) {
|
||||
|
||||
if (intval($value->user_id) === auth()->user()->id) {
|
||||
return $value;
|
||||
}
|
||||
@@ -209,5 +208,4 @@ class Attachment extends Model
|
||||
{
|
||||
return $this->belongsTo('FireflyIII\User');
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user