Merge pull request #815 from okriuchykhin/ok_GIOT_44

Add editable field to task in tasks tree API call [GIOT-44]
This commit is contained in:
okriuchykhin 2017-10-10 17:04:19 +02:00 committed by GitHub
commit 5364b7d659

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