User: Use notification_recipients as junction for notifications

This commit is contained in:
Johannes Meyer 2019-12-04 16:22:47 +01:00
parent e7f5ac454f
commit 2ccd956366

View file

@ -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);
}