Skip to content

Commit 5fcd8b4

Browse files
committed
check whether the user can access the project before adding members
1 parent fbcc1af commit 5fcd8b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/TeamService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ async function _addMemberToProjectAsCustomer (projectId, userId) {
373373
* @returns {Object} the success/failed added members
374374
*/
375375
async function addMembers (currentUser, id, data) {
376-
await helper.checkIsMemberOfProject(currentUser.userId, id)
376+
await helper.getProjectById(currentUser, id) // check whether the user can access the project
377377
const result = {
378378
success: [],
379379
failed: []

0 commit comments

Comments
 (0)