Author: shanti
Date: Thu Mar 19 21:31:25 2009
New Revision: 756213
URL: http://svn.apache.org/viewvc?rev=756213&view=rev
Log:
Removed setting of @you so that 'show' works even when not logged in
Modified:
incubator/olio/webapp/rails/trunk/app/controllers/users_controller.rb
Modified: incubator/olio/webapp/rails/trunk/app/controllers/users_controller.rb
URL:
http://svn.apache.org/viewvc/incubator/olio/webapp/rails/trunk/app/controllers/users_controller.rb?rev=756213&r1=756212&r2=756213&view=diff
==============================================================================
--- incubator/olio/webapp/rails/trunk/app/controllers/users_controller.rb
(original)
+++ incubator/olio/webapp/rails/trunk/app/controllers/users_controller.rb Thu
Mar 19 21:31:25 2009
@@ -32,7 +32,8 @@
# GET /users/1.xml
def show
@user = User.find(params[:id])
- @you = User.find(session[:user_id])
+ # Shanti: removing requirement for being logged in
+ # @you = User.find(session[:user_id])
@address = Address.find(@user.address_id)
@image = @user.image
@posted = @user.posted_events[0..2]