mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
make sure all route binders use guard.
This commit is contained in:
@@ -37,9 +37,9 @@ class CurrencyCode implements BinderInterface
|
||||
*
|
||||
* @return TransactionCurrency
|
||||
*/
|
||||
public static function routeBinder(string $value, Route $route): TransactionCurrency
|
||||
public static function routeBinder($guard, string $value, Route $route): TransactionCurrency
|
||||
{
|
||||
if (auth()->check()) {
|
||||
if ($guard->check()) {
|
||||
$currency = TransactionCurrency::where('code', trim($value))->first();
|
||||
if (null !== $currency) {
|
||||
return $currency;
|
||||
|
Reference in New Issue
Block a user