Add log to test on sandbox

This commit is contained in:
Erin 2025-04-15 13:57:01 -04:00
parent b4cc21dc77
commit 0785880a7e
No known key found for this signature in database

View file

@ -326,7 +326,8 @@ class DomainRequestWizard(TemplateView):
# if pending requests exist and user does not have approved domains,
# present message that domain request cannot be submitted
pending_requests = self.pending_requests()
if len(pending_requests) > 0 and not flag_is_active_for_user(self.request.user, "organization_feature"):
if not flag_is_active_for_user(self.request.user, "organization_feature") and len(pending_requests) > 0:
logger.debug("flag is active for user %s: %s" % self.request.user, flag_is_active_for_user(self.request.user, "organization_feature"))
message_header = "You cannot submit this request yet"
message_content = (
f"<h4 class='usa-alert__heading'>{message_header}</h4> "