X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/75300566e123c36599398cdd2e33f7b3e4e49808..a9824dbc2e8763e6fff6f71db7a31cc4761cd245:/app/controllers/application_controller.rb diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 0f9fad45e..25f4054a3 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -362,6 +362,15 @@ class ApplicationController < ActionController::Base !@user.nil? end + ## + # render a "no such user" page + def render_unknown_user(name) + @title = t "user.no_such_user.title" + @not_found_user = name + + render :template => "user/no_such_user", :status => :not_found + end + private # extract authorisation credentials from headers, returns user = nil if none