mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-10 17:03:56 +08:00
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:
commit
5364b7d659
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue