mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-07 14:41:20 +00:00
Merge branch 'develop' into 5.8-dev
This commit is contained in:
@@ -566,6 +566,10 @@ class User extends Authenticatable
|
||||
if (null !== $pref) {
|
||||
$email = $pref->data;
|
||||
}
|
||||
// if user is demo user, send to owner:
|
||||
if ($this->hasRole('demo')) {
|
||||
$email = config('firefly.site_owner');
|
||||
}
|
||||
|
||||
return match ($driver) {
|
||||
'database' => $this->notifications(),
|
||||
|
||||
Reference in New Issue
Block a user