Skip to content

Commit

Permalink
19451 Fixed small issue in authz after sync with main (#2539)
Browse files Browse the repository at this point in the history
* fixed small issue in authz after sync with main

* fixed if statement order
  • Loading branch information
JazzarKarim authored Mar 22, 2024
1 parent 9622851 commit 6406525
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion legal-api/src/legal_api/services/authz.py
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ def business_blocker_check(business: any, is_ignore_draft_blockers: bool = False
if not business.good_standing:
business_blocker_checks[BusinessBlocker.NOT_IN_GOOD_STANDING] = True

if business.amalgamating_businesses.one_or_none():
if business.is_legal_entity and business.amalgamating_businesses.one_or_none():
business_blocker_checks[BusinessBlocker.AMALGAMATING_BUSINESS] = True

return business_blocker_checks
Expand Down

0 comments on commit 6406525

Please sign in to comment.