Skip to content

Firefly III: a personal finances manager

Add missing link to user group in currency exchange rate #11982

James Cole7004c9aaf56e
diff --git a/app/Models/CurrencyExchangeRate.php b/app/Models/CurrencyExchangeRate.php
index 0f38be4ab7..1b78fced38 100644
--- a/app/Models/CurrencyExchangeRate.php
+++ b/app/Models/CurrencyExchangeRate.php
@@ -58,6 +58,10 @@ class CurrencyExchangeRate extends Model
{
return $this->belongsTo(User::class);
}
+ public function userGroup(): BelongsTo
+ {
+ return $this->belongsTo(UserGroup::class);
+ }
protected function casts(): array
{