From 338c6e02946e28687ac556682983b012ac287932 Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Mon, 13 Jul 2015 20:17:28 -0300 Subject: [PATCH] Fix task controller protection --- app/controllers/my_profile/tasks_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/my_profile/tasks_controller.rb b/app/controllers/my_profile/tasks_controller.rb index 15f511e..5043916 100644 --- a/app/controllers/my_profile/tasks_controller.rb +++ b/app/controllers/my_profile/tasks_controller.rb @@ -1,7 +1,7 @@ class TasksController < MyProfileController protect [:perform_task, :view_tasks], :profile, :only => [:index, :save_tags, :search_tags] - protect :perform_task, :profile, :except => [:index, :save_tags, :search_tags] + protect :perform_task, :profile, :only => [:processed, :change_responsible, :close, :new, :list_requested, :ticket_details, :search_tags] def index @rejection_email_templates = profile.email_templates.find_all_by_template_type(:task_rejection) -- libgit2 0.21.2