From: Tom Hughes Date: Tue, 15 Oct 2013 17:18:49 +0000 (+0100) Subject: Fix bogus redirect on error X-Git-Tag: live~4719 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/3a44d461b7d705efbb175ac12b4a5394a2979c9e Fix bogus redirect on error --- diff --git a/app/controllers/diary_entry_controller.rb b/app/controllers/diary_entry_controller.rb index 6b8acbe71..091744e22 100644 --- a/app/controllers/diary_entry_controller.rb +++ b/app/controllers/diary_entry_controller.rb @@ -199,7 +199,7 @@ private def require_administrator unless @user.administrator? flash[:error] = t('user.filter.not_an_administrator') - redirect_to :controller => 'diary_entry', :action => 'view', :display_name => params[:id] + redirect_to :controller => 'diary_entry', :action => 'view' end end