File tree Expand file tree Collapse file tree 2 files changed +0
-16
lines changed Expand file tree Collapse file tree 2 files changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -337,21 +337,6 @@ const internalUser = {
337
337
} ) ;
338
338
} ,
339
339
340
- /**
341
- * @param {Access } access
342
- * @param {Integer } [id_requested]
343
- * @returns {[String] }
344
- */
345
- getUserOmisionsByAccess : ( access , id_requested ) => {
346
- let response = [ ] ; // Admin response
347
-
348
- if ( ! access . token . hasScope ( 'admin' ) && access . token . getUserId ( 0 ) !== id_requested ) {
349
- response = [ 'roles' , 'is_deleted' ] ; // Restricted response
350
- }
351
-
352
- return response ;
353
- } ,
354
-
355
340
/**
356
341
* @param {Access } access
357
342
* @param {Object } data
Original file line number Diff line number Diff line change @@ -111,7 +111,6 @@ router
111
111
return internalUser . get ( res . locals . access , {
112
112
id : data . user_id ,
113
113
expand : data . expand ,
114
- omit : internalUser . getUserOmisionsByAccess ( res . locals . access , data . user_id )
115
114
} ) ;
116
115
} )
117
116
. then ( ( user ) => {
You can’t perform that action at this time.
0 commit comments