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

@live-change/access-control-service

Package Overview
Dependencies
Maintainers
0
Versions
232
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@live-change/access-control-service - npm Package Compare versions

Comparing version 0.8.75 to 0.8.76

2

access.js

@@ -14,3 +14,3 @@ import { parents, parentsSources } from './accessControlParents.js'

hasAny = (roles, client, { objectType, object }) => roles.length > 0,
isAdmin = (roles, client, { objectType, object }) => roles.includes('administrator'),
isAdmin = (roles, client, { objectType, object }) => roles.includes('admin'),
canInvite = (roles, client, { objectType, object }) => roles.length > 0,

@@ -17,0 +17,0 @@ canRequest = (roles, client, { objectType, object }) => false

@@ -228,3 +228,3 @@ import App from '@live-change/framework'

const myRoles = await access.getClientObjectRoles(client, { objectType, object }, true)
if(!myRoles.includes('administrator')) {
if(!myRoles.includes('admin')) {
for(const requestedRole of roles) {

@@ -231,0 +231,0 @@ if(!myRoles.includes(requestedRole)) throw 'notAuthorized'

{
"name": "@live-change/access-control-service",
"version": "0.8.75",
"version": "0.8.76",
"description": "",

@@ -24,6 +24,6 @@ "main": "index.js",

"dependencies": {
"@live-change/framework": "^0.8.75"
"@live-change/framework": "^0.8.76"
},
"gitHead": "9380bbf47a2a9087840cc71afe5b3eace66fa6ab",
"gitHead": "70c9a5ffb257f57b77754027d9c543584ca3423b",
"type": "module"
}

@@ -48,3 +48,3 @@ import App from '@live-change/framework'

const myRoles = await access.getClientObjectRoles(client, { objectType, object }, true)
if(!myRoles.includes('administrator')) {
if(!myRoles.includes('admin')) {
for(const requestedRole of roles) {

@@ -51,0 +51,0 @@ if(!myRoles.includes(requestedRole)) throw 'notAuthorized'

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