Преглед изворни кода

Merge pull request #637 from sharelatex/as-fix-clone-owner

Set the owner object to the current user when cloning a project
Alasdair Smith пре 8 година
родитељ
комит
3fa6f4743d
1 измењених фајлова са 3 додато и 0 уклоњено
  1. 3 0
      services/web/public/coffee/main/project-list/project-list.coffee

+ 3 - 0
services/web/public/coffee/main/project-list/project-list.coffee

@@ -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
 					}