mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
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:
parent
5681a76f4c
commit
4a1c2cf0e0
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue