Skip to content

Commit 457894f

Browse files
committed
[Venray #143] Show zaaknotificaties option for eHerkenning users
1 parent 788a90a commit 457894f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/open_inwoner/accounts/forms.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,8 @@ def __init__(self, user, *args, **kwargs):
241241
del self.fields["case_notification_channel"]
242242

243243
if (
244-
user.login_type != LoginTypeChoices.digid
244+
user.login_type
245+
not in [LoginTypeChoices.digid, LoginTypeChoices.eherkenning]
245246
or not config.notifications_cases_enabled
246247
or not case_page_is_published()
247248
):
@@ -376,7 +377,8 @@ def __init__(self, user, *args, **kwargs) -> None:
376377
if (
377378
not siteconfig.notifications_cases_enabled
378379
or not case_page_is_published()
379-
or user.login_type != LoginTypeChoices.digid
380+
or user.login_type
381+
not in [LoginTypeChoices.digid, LoginTypeChoices.eherkenning]
380382
):
381383
del self.fields["cases_notifications"]
382384

0 commit comments

Comments
 (0)