mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-18 23:50:09 +00:00
Would be nice to remove the references as well...
This commit is contained in:
@@ -58,9 +58,9 @@ class Attachment extends Model
|
||||
*/
|
||||
public static function routeBinder(string $value): Attachment
|
||||
{
|
||||
if ($guard->check()) {
|
||||
if (auth()->check()) {
|
||||
$attachmentId = intval($value);
|
||||
$attachment = $guard->user()->attachments()->find($attachmentId);
|
||||
$attachment = auth()->user()->attachments()->find($attachmentId);
|
||||
if (!is_null($attachment)) {
|
||||
return $attachment;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user