diff --git a/library/Icingadb/Model/User.php b/library/Icingadb/Model/User.php index e0a26e61..787e8930 100644 --- a/library/Icingadb/Model/User.php +++ b/library/Icingadb/Model/User.php @@ -86,7 +86,7 @@ class User extends Model $relations->belongsToMany('customvar_flat', CustomvarFlat::class) ->through(UserCustomvar::class); $relations->belongsToMany('notification', Notification::class) - ->through(NotificationUser::class); + ->through('notification_recipient'); $relations->belongsToMany('usergroup', Usergroup::class) ->through(UsergroupMember::class); }