Skip to content

Commit b0a7968

Browse files
authored
Merge pull request #177 from codeRIT/issue_32
feat: Inform user if redirected when trying to RSVP
2 parents dc1b039 + d0ffca4 commit b0a7968

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/controllers/rsvps_controller.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ def check_user_has_questionnaire
107107
def require_accepted_questionnaire
108108
return if @questionnaire.can_rsvp? || @questionnaire.checked_in?
109109

110+
flash[:alert] = "Sorry, you have not been accepted at this time. Please wait for an acceptance email before attempting to RSVP."
110111
redirect_to new_questionnaires_path
111112
end
112113
end

0 commit comments

Comments
 (0)