Просмотр исходного кода

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 лет назад
Родитель
Сommit
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
 					}