Add editable field to task in tasks tree API call [GIOT-44]

This commit is contained in:
Oleksii Kriuchykhin 2017-10-09 14:38:33 +02:00
parent c44c5b37bb
commit f8334b3d5b

View file

@ -20,6 +20,7 @@ module Api
exp.my_modules.find_each do |tk|
task = tk.as_json(only: %i(name description archived))
task['task_id'] = tk.id.to_s
task['editable'] = can_edit_module(tk)
tasks << task
end
experiment['tasks'] = tasks