Skip to content

Commit 0f34b4c

Browse files
authored
Merge pull request #65 from topcoder-platform/dev
Revert ref code search
2 parents 158bb0a + c27c10a commit 0f34b4c

File tree

2 files changed

+1
-18
lines changed

2 files changed

+1
-18
lines changed

src/permissions/project.view.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module.exports = freq => new Promise((resolve, reject) => {
2626

2727
// if user is co-pilot and the project doesn't have any copilots then
2828
// user can access the project
29-
if (util.hasRole(req, USER_ROLE.COPILOT)) {
29+
if (!hasAccess && util.hasRole(req, USER_ROLE.COPILOT)) {
3030
return models.Project.getProjectIdsForCopilot(currentUserId)
3131
.then((ids) => {
3232
req.context.accessibleProjectIds = ids;

src/routes/projects/list.js

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -121,23 +121,6 @@ const parseElasticSearchCriteria = (criteria, fields, order) => {
121121
fields: ['name^3', 'description', 'type'], // boost name field
122122
},
123123
},
124-
{
125-
nested: {
126-
path: 'details',
127-
query: {
128-
nested: {
129-
path: 'details.utm',
130-
query: {
131-
query_string: {
132-
query: `*${keyword}*`,
133-
analyze_wildcard: true,
134-
fields: ['details.utm.code'],
135-
},
136-
},
137-
},
138-
},
139-
},
140-
},
141124
{
142125
nested: {
143126
path: 'members',

0 commit comments

Comments
 (0)