@live-change/access-control-service
Advanced tools
Comparing version 0.2.22 to 0.2.23
73
model.js
@@ -18,5 +18,12 @@ const definition = require('./definition.js') | ||
properties: { | ||
role: { | ||
type: String, | ||
validation: ['nonEmpty'] | ||
roles: { | ||
type: Array, | ||
of: { | ||
type: String, | ||
validation: ['nonEmpty'] | ||
}, | ||
validation: ['elementsNonEmpty'] | ||
}, | ||
lastUpdate: { | ||
type: Date | ||
} | ||
@@ -36,10 +43,21 @@ } | ||
properties: { | ||
userRole: { | ||
type: String, | ||
validation: ['nonEmpty'] | ||
userRoles: { | ||
type: Array, | ||
of: { | ||
type: String, | ||
validation: ['nonEmpty'] | ||
}, | ||
validation: ['elementsNonEmpty'] | ||
}, | ||
sessionRole: { | ||
type: String, | ||
validation: ['nonEmpty'] | ||
sessionRoles: { | ||
type: Array, | ||
of: { | ||
type: String, | ||
validation: ['nonEmpty'] | ||
}, | ||
validation: ['elementsNonEmpty'] | ||
}, | ||
lastUpdate: { | ||
type: Date | ||
} | ||
}, | ||
@@ -60,5 +78,36 @@ indexes: { | ||
properties: { | ||
role: { | ||
roles: { | ||
type: Array, | ||
of: { | ||
type: String, | ||
validation: ['nonEmpty'] | ||
}, | ||
validation: ['elementsNonEmpty'] | ||
}, | ||
message: { | ||
type: String, | ||
validation: ['nonEmpty'] | ||
validation: [] | ||
} | ||
}, | ||
indexes: { | ||
} | ||
}) | ||
/* | ||
const AccessInvite = definition.model({ | ||
name: 'AccessInvite', | ||
userOrContactItem: {}, | ||
relatedToAny: { | ||
to: 'object', | ||
readAccess: (params, {client, context, visibilityTest}) => | ||
visibilityTest || access.clientHasAdminAccess(client, params.ownerType, params.owner) | ||
}, | ||
properties: { | ||
roles: { | ||
type: Array, | ||
of: { | ||
type: String, | ||
validation: ['nonEmpty'] | ||
}, | ||
validation: ['elementsNonEmpty'] | ||
}, | ||
@@ -71,5 +120,7 @@ message: { | ||
indexes: { | ||
} | ||
}) | ||
*/ | ||
module.exports = { Access, PublicAccess, AccessRequest } |
{ | ||
"name": "@live-change/access-control-service", | ||
"version": "0.2.22", | ||
"version": "0.2.23", | ||
"description": "", | ||
@@ -24,5 +24,5 @@ "main": "index.js", | ||
"dependencies": { | ||
"@live-change/framework": "0.5.20" | ||
"@live-change/framework": "0.5.27" | ||
}, | ||
"gitHead": "1bf2012299025806e7d7c0c74af8f29e28094d16" | ||
"gitHead": "c22bdb7af06561f1dc64b9d9c8cb90154dcd3618" | ||
} |
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
4458
141
+ Added@live-change/framework@0.5.27(transitive)
- Removed@live-change/framework@0.5.20(transitive)