Commit fae31ae00b0b956c1027fbd154235a028a300e1c
Exists in
master
and in
8 other branches
Merge branch 'proposal_task_category'
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
controllers/myprofile/proposals_discussion_plugin_tasks_controller.rb
| 1 | class ProposalsDiscussionPluginTasksController < TasksController | 1 | class ProposalsDiscussionPluginTasksController < TasksController |
| 2 | 2 | ||
| 3 | + protect [:perform_task, :view_tasks], :profile, :only => [:index, :save_tags, :search_tags, :save_categories] | ||
| 4 | + protect :perform_task, :profile, :except => [:index, :save_tags, :search_tags, :save_categories] | ||
| 5 | + | ||
| 3 | def index | 6 | def index |
| 4 | @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) |
| 5 | @acceptance_email_templates = profile.email_templates.find_all_by_template_type(:task_acceptance) | 8 | @acceptance_email_templates = profile.email_templates.find_all_by_template_type(:task_acceptance) |