Fix bogus redirect on error
authorTom Hughes <tom@compton.nu>
Tue, 15 Oct 2013 17:18:49 +0000 (18:18 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 15 Oct 2013 17:18:49 +0000 (18:18 +0100)
app/controllers/diary_entry_controller.rb

index 6b8acbe..091744e 100644 (file)
@@ -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