This commit is contained in:
Kenneth Kehl
2024-07-11 10:27:04 -07:00
parent 058a999ed0
commit 272d321766
2 changed files with 5 additions and 1 deletions

View File

@@ -55,7 +55,10 @@ class NotifyAdminAPIClient(BaseAPIClient):
abort(403)
def check_inactive_user(self):
if not current_user or not current_user.is_active:
if os.getenv("NOTIFY_E2E_TEST_EMAIL"):
# allow end-to-end tests to skip check
pass
elif not current_user or not current_user.is_active:
abort(403)
def post(self, *args, **kwargs):