Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

404 error for not authorized user #35

Open
nashby opened this Issue · 1 comment

3 participants

@nashby
Collaborator
Given not authorized user
Given open contest
When I visit http://codebrawl.com/contests/command-line-todo-lists/entries/new
I should not see 404 error

I think it's because of this line (entries_controller.rb):

@contest.not_found if @contest.has_entry_from?(current_user)

so if current_user == nil this method fails (contest.rb):

def has_entry_from?(user)
  entries.where(:user_id => user.id).any?
end
@jeffkreeftmeijer

Yes, we probably need a 401 there. :)

@lenary lenary was assigned
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.