Set cloned project's owner to current user

Fixes a bug where cloning a project then selecting to delete it, the wrong
button for deletion is shown (leave instead of archive/delete). This is
because we are using the owner object (which was undefined after cloning) to
determine which button to show
This commit is contained in:
Alasdair Smith 2018-06-06 13:44:02 +01:00
parent 5681a76f4c
commit 4a1c2cf0e0

View file

@ -320,6 +320,9 @@ define [
name: cloneName
id: data.project_id
accessLevel: "owner"
owner: {
_id: user_id
}
# TODO: Check access level if correct after adding it in
# to the rest of the app
}