Skip to content
Browse files

removed login requirement on user page

  • Loading branch information...
1 parent 0d2237e commit fb5924d0e42b1f246d9dd970d2b16af9eb8f83a0 @chrismatthieu committed Nov 22, 2011
Showing with 3 additions and 2 deletions.
  1. +2 −1 app/controllers/users_controller.rb
  2. +1 −1 app/views/users/show.html.erb
View
3 app/controllers/users_controller.rb
@@ -1,7 +1,8 @@
class UsersController < ApplicationController
- before_filter :login_required, :except => [:new, :create]
+ before_filter :login_required, :except => [:new, :create, :show]
before_filter :admin_required, :only => [:index, :destroy]
+ before_filter :current_user, :only => [:show]
# GET /users
# GET /users.json
View
2 app/views/users/show.html.erb
@@ -70,6 +70,6 @@
<% else %>
<h1>User not found :(</h1>
<div id="pagecontent">
- Invite <%=params[:user]%>
+ <!-- Invite <%=params[:user]%> -->
</div>
<% end %>

0 comments on commit fb5924d

Please sign in to comment.
Something went wrong with that request. Please try again.