Skip to content

Commit 8bb3e23

Browse files
committed
revert changes in project.delete.js
1 parent b1258e2 commit 8bb3e23

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/permissions/project.delete.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@ import { PROJECT_MEMBER_ROLE } from '../constants';
66
/**
77
* Super admin, Topcoder Managers are allowed to edit any project
88
* Rest can add members only if they are currently part of the project team.
9-
* @param {Object} req the express request instance
9+
* @param {Object} freq the express request instance
1010
* @return {Promise} Returns a promise
1111
*/
12-
module.exports = req => new Promise((resolve, reject) => {
13-
const projectId = _.parseInt(req.params.projectId);
12+
module.exports = freq => new Promise((resolve, reject) => {
13+
const projectId = _.parseInt(freq.params.projectId);
1414
return models.ProjectMember.getActiveProjectMembers(projectId)
1515
.then((members) => {
16+
const req = freq;
1617
req.context = req.context || {};
1718
req.context.currentProjectMembers = members;
1819
// check if auth user has acecss to this project

0 commit comments

Comments
 (0)