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
223
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.82 to 0.8.83

28

access.js

@@ -111,10 +111,4 @@ import { parents, parentsSources } from './accessControlParents.js'

async function checkRoles(client, { objectType, object, objects }, callback, ignorePublic) {
const allObjects = ((objectType && object) ? [{ objectType, object }] : []).concat(objects || [])
const roles = await getClientObjectsRoles(client, allObjects, ignorePublic)
//console.log('checkRoles', allObjects, roles)
//console.trace("CHECK ROLES!")
return await callback(roles, client, { objectType, object })
}
/// QUERIES:

@@ -313,16 +307,12 @@

/*
function accessLimitedGet(client, objects, requiredRoles, path) {
const roles = getClientObjectsRoles(client, objects)
for(const requiredRole of requiredRoles) {
}
async function checkRoles(client, { objectType, object, objects }, callback, ignorePublic) {
const allObjects = ((objectType && object) ? [{ objectType, object }] : []).concat(objects || [])
//const roles = await getClientObjectsRoles(client, allObjects, ignorePublic)
const access = await app.dao.get(accessPath(client, allObjects))
const roles = access.roles
//console.log('checkRoles', allObjects, roles)
//console.trace("CHECK ROLES!")
return await callback(roles, client, { objectType, object })
}
function accessLimitedObservable(client, objects, path) {
if(path[0] !== 'database') throw new Error("non database path "+ JSON.stringify(path))
const isObject = path[1] === 'queryObject' || path[1] === ''
}
*/
return {

@@ -329,0 +319,0 @@ testRoles,

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

/// Load invitation
const invitation = App.encodeIdentifier([ contactType + '_' + contactTypeUpperCase, contact, objectType, object ])
const invitation = App.encodeIdentifier([
contactType + '_' + contactTypeUpperCase, contact, objectType, object
])
console.log("INVITATION", invitation)

@@ -142,0 +144,0 @@ const invitationData = await AccessInvitation.get(invitation)

{
"name": "@live-change/access-control-service",
"version": "0.8.82",
"version": "0.8.83",
"description": "",

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

"dependencies": {
"@live-change/framework": "^0.8.82"
"@live-change/framework": "^0.8.83"
},
"gitHead": "72f303118f6bb5e324c5d77473b456fc10f7ed04",
"gitHead": "a3c85f0869b4c65c2bdd6f181bdfcbe2d6f2bde5",
"type": "module"
}
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