mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 16:57:09 +00:00
Would be nice to remove the references as well...
This commit is contained in:
@@ -88,9 +88,9 @@ class TransactionJournal extends Model
|
||||
*/
|
||||
public static function routeBinder(string $value): TransactionJournal
|
||||
{
|
||||
if ($guard->check()) {
|
||||
if (auth()->check()) {
|
||||
$journalId = intval($value);
|
||||
$journal = $guard->user()->transactionJournals()->where('transaction_journals.id', $journalId)
|
||||
$journal = auth()->user()->transactionJournals()->where('transaction_journals.id', $journalId)
|
||||
->first(['transaction_journals.*']);
|
||||
if (!is_null($journal)) {
|
||||
return $journal;
|
||||
|
Reference in New Issue
Block a user