mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Currency code test.
This commit is contained in:
@@ -38,9 +38,11 @@ class CurrencyCode implements BinderInterface
|
||||
*/
|
||||
public static function routeBinder($value, $route)
|
||||
{
|
||||
$currency = TransactionCurrency::where('code', $value)->first();
|
||||
if (null !== $currency) {
|
||||
return $currency;
|
||||
if (auth()->check()) {
|
||||
$currency = TransactionCurrency::where('code', $value)->first();
|
||||
if (null !== $currency) {
|
||||
return $currency;
|
||||
}
|
||||
}
|
||||
throw new NotFoundHttpException;
|
||||
}
|
||||
|
Reference in New Issue
Block a user