Commit 338c6e02946e28687ac556682983b012ac287932
1 parent
2066e859
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
Fix task controller protection
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/controllers/my_profile/tasks_controller.rb
1 | 1 | class TasksController < MyProfileController |
2 | 2 | |
3 | 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 | 6 | def index |
7 | 7 | @rejection_email_templates = profile.email_templates.find_all_by_template_type(:task_rejection) | ... | ... |