Skip to content

Firefly III: a personal finances manager

Fix refactor for field.

James Colec3398d4d5132
diff --git a/app/Support/Amount.php b/app/Support/Amount.php
index 54541bad07..c018e502c7 100644
--- a/app/Support/Amount.php
+++ b/app/Support/Amount.php
@@ -108,8 +108,9 @@ class Amount
*/
public function getCurrencies(): Collection
{
- throw new FireflyException(sprintf('Method "%s" needs a refactor', __METHOD__));
- return TransactionCurrency::where('enabled', true)->orderBy('code', 'ASC')->get();
+ /** @var User $user */
+ $user = auth()->user();
+ return $user->currencies()->orderBy('code','ASC')->get();
}
/**