Comparing version 0.2.21 to 0.2.22
@@ -21,7 +21,3 @@ "use strict"; | ||
current.setParts(permission.name); | ||
if (current.implies(target)) { | ||
if (typeof value !== 'string' && value.extendValue !== permission.extendValue) { | ||
forbidden(this, JSON.stringify(value)); | ||
return false; | ||
} | ||
if (current.implies(target) && (typeof value === 'string' || value.extendValue === permission.extendValue)) { | ||
return true; | ||
@@ -28,0 +24,0 @@ } |
@@ -0,1 +1,10 @@ | ||
## [0.2.22](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-egg/compare/v0.2.21...v0.2.22) (2021-01-22) | ||
### Bug Fixes | ||
* isPermitted bugs ([cfd3819](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-egg/commit/cfd381916398637ce781eb53619b4280f3a4dfee)) | ||
## [0.2.21](https://gitlab-ag.marmot-cloud.com/marmot/kauth-sdk-egg/compare/v0.2.20...v0.2.21) (2021-01-22) | ||
@@ -2,0 +11,0 @@ |
{ | ||
"name": "egg-kauth", | ||
"version": "0.2.21", | ||
"version": "0.2.22", | ||
"description": "egg kauth plugin", | ||
@@ -5,0 +5,0 @@ "eggPlugin": { |
28799
456