From b3866b05c14bd0f1fff4c54051f522e03e2bec36 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 3 Mar 2012 15:09:20 +0000 Subject: Removes all #verify calls in controllers. Verification is handled at routing level now that the default route is removed. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9061 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/watchers_controller.rb | 4 ---- 1 file changed, 4 deletions(-) (limited to 'app/controllers/watchers_controller.rb') diff --git a/app/controllers/watchers_controller.rb b/app/controllers/watchers_controller.rb index 8a4ce5286..c51722b6a 100644 --- a/app/controllers/watchers_controller.rb +++ b/app/controllers/watchers_controller.rb @@ -20,10 +20,6 @@ class WatchersController < ApplicationController before_filter :require_login, :check_project_privacy, :only => [:watch, :unwatch] before_filter :authorize, :only => [:new, :destroy] - verify :method => :post, - :only => [ :watch, :unwatch ], - :render => { :nothing => true, :status => :method_not_allowed } - def watch if @watched.respond_to?(:visible?) && !@watched.visible?(User.current) render_403 -- cgit v1.2.3