mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-06 06:01:21 +00:00
make sure all route binders use guard.
This commit is contained in:
@@ -58,9 +58,9 @@ class TransactionCurrency extends Model
|
||||
*
|
||||
* @return TransactionCurrency
|
||||
*/
|
||||
public static function routeBinder(string $value): TransactionCurrency
|
||||
public static function routeBinder($guard, string $value): TransactionCurrency
|
||||
{
|
||||
if (auth()->check()) {
|
||||
if ($guard->check()) {
|
||||
$currencyId = intval($value);
|
||||
$currency = self::find($currencyId);
|
||||
if (!is_null($currency)) {
|
||||
|
||||
Reference in New Issue
Block a user