From 2ccd956366570ff4740ec281c822e414e42e3290 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Wed, 4 Dec 2019 16:22:47 +0100 Subject: [PATCH] User: Use `notification_recipients` as junction for notifications --- library/Icingadb/Model/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }