فهرست منبع

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
 					}