@@ -16,7 +16,7 @@ import config from 'config';
16
16
import urlencode from 'urlencode' ;
17
17
import elasticsearch from 'elasticsearch' ;
18
18
import AWS from 'aws-sdk' ;
19
- // import jp from 'jsonpath';
19
+ import jp from 'jsonpath' ;
20
20
import Promise from 'bluebird' ;
21
21
import models from './models' ;
22
22
@@ -617,16 +617,7 @@ _.assignIn(util, {
617
617
*
618
618
* @return {Object } data has been processed
619
619
*/
620
- maskInviteEmails : ( jsonPath , data , req ) => { // eslint-disable-line
621
- // temporary disable this feature, because it has some side effects
622
- // see relative issues:
623
- // - https://github.com/topcoder-platform/tc-project-service/issues/420
624
- // - https://github.com/appirio-tech/connect-app/issues/3412
625
- // - https://github.com/topcoder-platform/tc-project-service/issues/422
626
- // - https://github.com/appirio-tech/connect-app/issues/3413
627
- // uncomment code below, to enable masking emails again
628
-
629
- /*
620
+ maskInviteEmails : ( jsonPath , data , req ) => {
630
621
const isAdmin = util . hasPermission ( { topcoderRoles : ADMIN_ROLES } , req . authUser ) ;
631
622
if ( isAdmin ) {
632
623
return data ;
@@ -639,7 +630,6 @@ _.assignIn(util, {
639
630
// isString or null
640
631
return util . maskEmail ( value ) ;
641
632
} ) ;
642
- */
643
633
return data ;
644
634
} ,
645
635
0 commit comments