Skip to content

Commit

Permalink
removed login requirement on user page
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismatthieu committed Nov 22, 2011
1 parent 0d2237e commit fb5924d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/controllers/users_controller.rb
@@ -1,7 +1,8 @@
class UsersController < ApplicationController 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 :admin_required, :only => [:index, :destroy]
before_filter :current_user, :only => [:show]


# GET /users # GET /users
# GET /users.json # GET /users.json
Expand Down
2 changes: 1 addition & 1 deletion app/views/users/show.html.erb
Expand Up @@ -70,6 +70,6 @@
<% else %> <% else %>
<h1>User not found :(</h1> <h1>User not found :(</h1>
<div id="pagecontent"> <div id="pagecontent">
Invite <%=params[:user]%> <!-- Invite <%=params[:user]%> -->
</div> </div>
<% end %> <% end %>

0 comments on commit fb5924d

Please sign in to comment.