From 23d020edc08f05d7cd569834be31e151f0d65d83 Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Thu, 18 Jun 2015 20:59:34 -0300 Subject: [PATCH] Accept parameter to display tasks in view only mode --- controllers/myprofile/proposals_discussion_plugin_tasks_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/myprofile/proposals_discussion_plugin_tasks_controller.rb b/controllers/myprofile/proposals_discussion_plugin_tasks_controller.rb index 0f434eb..e6cd639 100644 --- a/controllers/myprofile/proposals_discussion_plugin_tasks_controller.rb +++ b/controllers/myprofile/proposals_discussion_plugin_tasks_controller.rb @@ -8,7 +8,7 @@ class ProposalsDiscussionPluginTasksController < TasksController @filter_responsible = params[:filter_responsible] @filter_tags = params[:filter_tags] - @view_only = !current_person.has_permission?(:perform_task, profile) + @view_only = !current_person.has_permission?(:perform_task, profile) || params[:view_only] @task_tags = [OpenStruct.new(:name => _('All'), :id => nil) ] + Task.all_tags @task_types = Task.pending_types_for(profile) -- libgit2 0.21.2