From 3a44d461b7d705efbb175ac12b4a5394a2979c9e Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 15 Oct 2013 18:18:49 +0100 Subject: [PATCH] Fix bogus redirect on error --- app/controllers/diary_entry_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.43.2