]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/diary_entry_controller.rb
More refactoring of common code in object models
[rails.git] / app / controllers / diary_entry_controller.rb
index 6b8acbe71a335f87a9d6004c0154a93294ef62be..091744e2226256e0d6aba9cd283a68ec37b896df 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