@keystonejs/access-control
Advanced tools
Comparing version 6.1.0 to 6.2.0
# @keystonejs/access-control | ||
## 6.2.0 | ||
### Minor Changes | ||
- [`dec3d336a`](https://github.com/keystonejs/keystone/commit/dec3d336adbe8156722fbe65f315a57b2f5c08e7) [#3153](https://github.com/keystonejs/keystone/pull/3153) Thanks [@timleslie](https://github.com/timleslie)! - Made `context` available to user designed access control functions. | ||
## 6.1.0 | ||
@@ -4,0 +10,0 @@ |
@@ -196,2 +196,3 @@ const { getType, pick, defaultObj, intersection } = require('@keystonejs/utils'); | ||
itemIds, | ||
context, | ||
}) { | ||
@@ -211,2 +212,3 @@ // Either a boolean or an object describing a where clause | ||
itemIds, | ||
context, | ||
}); | ||
@@ -244,2 +246,3 @@ } | ||
itemIds, | ||
context, | ||
}) { | ||
@@ -260,2 +263,3 @@ let result; | ||
itemIds, | ||
context, | ||
}); | ||
@@ -275,3 +279,3 @@ } | ||
async validateAuthAccessControl({ access, listKey, authentication = {}, gqlName }) { | ||
async validateAuthAccessControl({ access, listKey, authentication = {}, gqlName, context }) { | ||
const operation = 'auth'; | ||
@@ -288,2 +292,3 @@ // Either a boolean or an object describing a where clause | ||
gqlName, | ||
context, | ||
}); | ||
@@ -290,0 +295,0 @@ } |
{ | ||
"name": "@keystonejs/access-control", | ||
"description": "KeystoneJS Access Control parsing and validating utilities.", | ||
"version": "6.1.0", | ||
"version": "6.2.0", | ||
"author": "The KeystoneJS Development Team", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
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
18863
292