X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/420a7289a0b08eee091f6650c2e83166df3fbe69..f8f7ab15685403a2b440723f83fdd8451488c908:/app/controllers/diary_entry_controller.rb diff --git a/app/controllers/diary_entry_controller.rb b/app/controllers/diary_entry_controller.rb index d3d7f6a7c..cff57920b 100644 --- a/app/controllers/diary_entry_controller.rb +++ b/app/controllers/diary_entry_controller.rb @@ -225,8 +225,8 @@ class DiaryEntryController < ApplicationController # a helpful error message and return them to the user page. def deny_access(exception) if current_user && exception.action.in?([:hide, :hidecomment]) - flash[:error] = t("user.filter.not_an_administrator") - redirect_to :action => "view" + flash[:error] = t("users.filter.not_an_administrator") + redirect_to :action => "show" else super end