Working on getting the service to be used.

Signed-off-by: Cliff Hill <clifford.hill@gsa.gov>
This commit is contained in:
Cliff Hill
2025-04-30 12:45:55 -04:00
parent db3c4d170e
commit c22e216d79
3 changed files with 39 additions and 35 deletions

View File

@@ -85,8 +85,9 @@ class NotifyAdminAPIClient(BaseAPIClient):
abort(403)
def post(self, *args, **kwargs):
self.check_inactive_service()
self.check_inactive_user(args)
if os.getenv('NOTIFY_ENVIRONMENT') != "e2etest":
self.check_inactive_service()
self.check_inactive_user(args)
return super().post(*args, **kwargs)
def put(self, *args, **kwargs):