Commit 58defcbc50caa2bd1c2f970b03bdf1df2cb57df8
1 parent
19be07c0
Exists in
master
and in
8 other branches
Fix the save_categories action permission in ProposalTasksController
Showing
1 changed file
with
5 additions
and
1 deletions
Show diff stats
controllers/myprofile/proposals_discussion_plugin_tasks_controller.rb
1 | 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 | 6 | def index |
4 | - @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) | |
8 | + @acceptance_email_templates = profile.email_templates.find_all_by_template_type(:task_acceptance) | |
5 | 9 | |
6 | 10 | @filter_type = params[:filter_type].presence |
7 | 11 | @filter_text = params[:filter_text].presence | ... | ... |