Skip to content

Commit

Permalink
Fix wrong condition for submissions_suspended
Browse files Browse the repository at this point in the history
  • Loading branch information
Guitlle committed Sep 3, 2024
1 parent c39ff2e commit e25e1bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kobo/apps/openrosa/apps/logger/models/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def check_active(self, force):
# wrapped in try/except
UserProfile = apps.get_model('main', 'UserProfile') # noqa - Avoid circular imports
if profile := UserProfile.objects.filter(user=self.xform.user).first():
if profile.submissions_suspended is False:
if profile.submissions_suspended:
raise TemporarilyUnavailableError()
return

Expand Down

0 comments on commit e25e1bf

Please sign in to comment.