sealuzh / cloud-stove

The Cloud Stove Backend
https://api.thestove.io
Apache License 2.0
4 stars 0 forks source link

Fix copy engine that did not persist user changes #173

Closed joe4dev closed 7 years ago

joe4dev commented 7 years ago

Saving the copy ingredient does not automatically save the entire object tree unless autosave: true is configured. Therefore, the changes under if new_user.present? are never persisted. This resulted in strange error messages (e.g., Couldn't find user_workload with id 20) because they couldn't be accessed by the proper user anymore (they usually belonged to the admin then).