Commit 338c6e02946e28687ac556682983b012ac287932

Authored by Victor Costa
1 parent 2066e859

Fix task controller protection

app/controllers/my_profile/tasks_controller.rb
1 class TasksController < MyProfileController 1 class TasksController < MyProfileController
2 2
3 protect [:perform_task, :view_tasks], :profile, :only => [:index, :save_tags, :search_tags] 3 protect [:perform_task, :view_tasks], :profile, :only => [:index, :save_tags, :search_tags]
4 - protect :perform_task, :profile, :except => [:index, :save_tags, :search_tags] 4 + protect :perform_task, :profile, :only => [:processed, :change_responsible, :close, :new, :list_requested, :ticket_details, :search_tags]
5 5
6 def index 6 def index
7 @rejection_email_templates = profile.email_templates.find_all_by_template_type(:task_rejection) 7 @rejection_email_templates = profile.email_templates.find_all_by_template_type(:task_rejection)