Commit 23d020edc08f05d7cd569834be31e151f0d65d83
1 parent
60f4eb99
Exists in
master
and in
9 other branches
Accept parameter to display tasks in view only mode
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
controllers/myprofile/proposals_discussion_plugin_tasks_controller.rb
... | ... | @@ -8,7 +8,7 @@ class ProposalsDiscussionPluginTasksController < TasksController |
8 | 8 | @filter_responsible = params[:filter_responsible] |
9 | 9 | @filter_tags = params[:filter_tags] |
10 | 10 | |
11 | - @view_only = !current_person.has_permission?(:perform_task, profile) | |
11 | + @view_only = !current_person.has_permission?(:perform_task, profile) || params[:view_only] | |
12 | 12 | |
13 | 13 | @task_tags = [OpenStruct.new(:name => _('All'), :id => nil) ] + Task.all_tags |
14 | 14 | @task_types = Task.pending_types_for(profile) | ... | ... |