Drop a specific preference from the return of Firefly III

This commit is contained in:
James Cole
2024-04-18 05:54:57 +02:00
parent e16645ae87
commit 4a783d3c3c
2 changed files with 14 additions and 0 deletions

View File

@@ -44,6 +44,7 @@ class Preferences
}
return Preference::where('user_id', $user->id)
->where('name','!=','currencyPreference')
->where(function (Builder $q) use ($user): void {
$q->whereNull('user_group_id');
$q->orWhere('user_group_id', $user->user_group_id);