Skip to content

Commit

Permalink
fix: fix a typo
Browse files Browse the repository at this point in the history
  • Loading branch information
AmooHashem committed Jan 1, 2025
1 parent daea869 commit 5a412fd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apps/fsm/views/fsm_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,15 @@ def enter_fsm(self, request, pk=None):
if fsm.participant_limit > 0 and not is_mentor:
if user.is_anonymous:
raise PermissionDenied(
"You must be logged in to submit this form.")
"You must be logged in to enter this fsm."
)
else:
count = get_players(user, fsm).filter(
finished_at__isnull=False).count()
if count >= fsm.participant_limit:
raise PermissionDenied(
"You have exceeded the submission limit for this form.")
"You have exceeded the submission limit for this fsm."
)

if fsm.is_public:
if isinstance(user, AnonymousUser):
Expand Down

0 comments on commit 5a412fd

Please sign in to comment.