File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments