aws-user-service
Advanced tools
Comparing version 1.1.4 to 1.1.5
@@ -15,3 +15,3 @@ const AWS = require('aws-sdk'); | ||
async getUserIdFromRequest(request) { | ||
const realUserId = getActualUserIdFromRequest(request) | ||
const realUserId = this.getActualUserIdFromRequest(request) | ||
if (!request.query.impersonatingUserId) { | ||
@@ -22,3 +22,3 @@ return realUserId | ||
// check if current user is Admin | ||
const adminCheckSuccessful = await isAdmin(realUserId) | ||
const adminCheckSuccessful = await this.isAdmin(realUserId) | ||
if (adminCheckSuccessful === true) { | ||
@@ -33,3 +33,3 @@ // return impersonating user id | ||
async getUser(userId) { | ||
return await getUserById(userId) | ||
return await this.getUserById(userId) | ||
} | ||
@@ -36,0 +36,0 @@ |
{ | ||
"name": "aws-user-service", | ||
"version": "1.1.4", | ||
"version": "1.1.5", | ||
"description": "Contain methods to work with asw user", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3860