diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb
index 6557af3e4..459b54784 100644
--- a/app/controllers/projects_controller.rb
+++ b/app/controllers/projects_controller.rb
@@ -204,9 +204,10 @@ class ProjectsController < ApplicationController
end
end
end
-
+
+ verify :method => :post, :only => :modules, :render => {:nothing => true, :status => :method_not_allowed }
def modules
- @project.enabled_module_names = params[:enabled_modules]
+ @project.enabled_module_names = params[:enabled_module_names]
flash[:notice] = l(:notice_successful_update)
redirect_to :action => 'settings', :id => @project, :tab => 'modules'
end
diff --git a/app/views/projects/settings/_modules.rhtml b/app/views/projects/settings/_modules.rhtml
index c123b4c9c..9e0f92caa 100644
--- a/app/views/projects/settings/_modules.rhtml
+++ b/app/views/projects/settings/_modules.rhtml
@@ -7,7 +7,7 @@
<% Redmine::AccessControl.available_project_modules.each do |m| %>
-