]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/user_controller.rb
Support getting a way, and all the segments and nodes it depends on, via /way/:id...
[rails.git] / app / controllers / user_controller.rb
index d79041b4fd94da2ec6c876bb04d31b4d8af1c33a..3837d097609512816176798d7d7339d72d011c8a 100644 (file)
@@ -2,7 +2,7 @@ class UserController < ApplicationController
   layout 'site'
 
   before_filter :authorize, :only => [:preferences, :api_details, :api_gpx_files]
-  before_filter :authorize_web, :only => [:edit, :account, :go_public]
+  before_filter :authorize_web, :only => [:edit, :account, :go_public, :view, :diary]
   before_filter :require_user, :only => [:edit, :account, :go_public]
  
   def save
@@ -139,11 +139,14 @@ class UserController < ApplicationController
     render :text => doc.to_s
   end
 
-
   def view
     @this_user = User.find_by_display_name(params[:display_name])
   end
 
+  def diary
+    @this_user = User.find_by_display_name(params[:display_name])
+  end
+
 
 end