Commit d0a7941b2066aad3eb12f85dd7a208a97adae115
Exists in
master
and in
8 other branches
Merge branch 'master' of https://gitlab.com/noosfero-plugins/proposals_discussion
Showing
2 changed files
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 | 7 | @rejection_email_templates = profile.email_templates.find_all_by_template_type(:task_rejection) |
| 5 | 8 | @acceptance_email_templates = profile.email_templates.find_all_by_template_type(:task_acceptance) | ... | ... |
lib/proposals_discussion_plugin/proposal_task.rb