X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/3aabf07e1038abf8cf471e463e00309df77df603..029b9f3d9f93cbb5bfbd2e0a54866aa55a3f7cd7:/app/controllers/user_controller.rb diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index d79041b4f..3837d0976 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -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