瀏覽代碼

add user scope

Mohammed Nafees 4 年之前
父節點
當前提交
6c735f9575
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      api/server/router/project.go

+ 2 - 1
api/server/router/project.go

@@ -396,8 +396,9 @@ func getProjectRoutes(
 				RelativePath: relPath + "/collaborators/{user_id}",
 				RelativePath: relPath + "/collaborators/{user_id}",
 			},
 			},
 			Scopes: []types.PermissionScope{
 			Scopes: []types.PermissionScope{
-				types.SettingsScope,
+				types.UserScope,
 				types.ProjectScope,
 				types.ProjectScope,
+				types.SettingsScope,
 			},
 			},
 		},
 		},
 	)
 	)