accesscontrol-re
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -27,3 +27,3 @@ "use strict"; | ||
const accessInfo = Object.assign({}, ai, { possession: actionPossession || ai.possession || 'any', action: actionToGrant, resource: resourceToGrant, role: rolesToGrant }); | ||
ac.grant(accessInfo); | ||
accessInfo.denied ? ac.deny(accessInfo) : ac.grant(accessInfo); | ||
} | ||
@@ -30,0 +30,0 @@ } |
{ | ||
"name": "accesscontrol-re", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"main": "./build/src/index.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -35,3 +35,7 @@ # Access Control Re | ||
You can of course use any combination, even `'*'` for *permit all* :-) | ||
You can of course use any combination, even `'*'` for *permit all* :-) | ||
- Solving various smaller issues and bugs: | ||
- Not respecting `denied: true` of `IAccessInfo` in `AccessControl.grant` - https://github.com/onury/accesscontrol/issues/67 | ||
@@ -52,3 +56,3 @@ ## How to use | ||
addAccessInfo(accessInfos); // also accepts a single accessInfo | ||
addAccessInfo(accessInfos); // also accepts a single IAccessInfo | ||
const ac: AccessControl = build(); // @note: can call only `_.once`! | ||
@@ -55,0 +59,0 @@ |
Sorry, the diff of this file is not supported yet
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
14102
90