Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

aws-user-service

Package Overview
Dependencies
Maintainers
2
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aws-user-service - npm Package Compare versions

Comparing version 1.1.8 to 1.1.9

14

index.js

@@ -19,3 +19,3 @@ const AWS = require('aws-sdk');

}
// check if current user is Admin

@@ -27,4 +27,4 @@ const adminCheckSuccessful = await this.isAdmin(realUserId)

}
console.log('Non admin permission but is trying to impersonate user', request.query.impersonatingUserId)
console.log('No admin permission to impersonate user', request.query.impersonatingUserId)
throw new Error('Non admin attempt to impersonate');

@@ -90,5 +90,3 @@ }

console.log('user groups:', groups)
if (!groups)
if (groups == null)
return false

@@ -101,6 +99,6 @@

if (!groups.data)
if (!groups.Groups)
return false
return groups.data.Groups.filter(x => x.GroupName === "SenterAdmin").length === 1
return groups.Groups.filter(x => x.GroupName === "SenterAdmin").length === 1
}

@@ -107,0 +105,0 @@

{
"name": "aws-user-service",
"version": "1.1.8",
"version": "1.1.9",
"description": "Contain methods to work with asw user",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc