Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #62 from cesy/otwarchive

---

http://code.google.com/p/otwarchive/issues/detail?id=2247

Tested on my webdev. Not easy to make a cucumber test for, as it would involve typing in URLs directly.
  • Loading branch information...
commit 68b96cef7599fad6cc18194d81c2a2c8f2958b3d 2 parents 9fee529 + e7bb3ba
@elzj elzj authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 app/controllers/challenge_signups_controller.rb
View
4 app/controllers/challenge_signups_controller.rb
@@ -91,8 +91,10 @@ def index
format.html {
if @challenge.user_allowed_to_see_signups?(current_user)
@challenge_signups = @collection.signups.joins(:pseud).paginate(:page => params[:page], :per_page => 20, :order => "pseuds.name")
- else
+ elsif params[:user_id] && (@user = User.find_by_login(params[:user_id]))
@challenge_signups = @collection.signups.by_user(current_user)
+ else
+ not_allowed
end
}
format.xls {
Please sign in to comment.
Something went wrong with that request. Please try again.