Skip to content

Commit 37c833f

Browse files
committed
Add authanticate before checking role in referece-card form
1 parent d233410 commit 37c833f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

app/controllers/reference_card_forms_controller.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ def validate_recaptcha!
8484
end
8585

8686
def require_admin!
87+
authenticate!
8788
@user_is_admin = current_user.role?(Role.stackpass_admin)
8889
raise Error::ForbiddenError unless @user_is_admin
8990
end

0 commit comments

Comments
 (0)