Skip to content

Commit 30e976f

Browse files
OrKoNdaniel-cottone
authored andcommitted
Fixes the case when policy === * (dherault#391)
1 parent 89debaf commit 30e976f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/authMatchPolicyResource.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ module.exports = (policyResource, resource) => {
22
if (policyResource === resource) {
33
return true;
44
}
5+
else if (policyResource === '*') {
6+
return true;
7+
}
58
else if (policyResource.includes('*')) {
69
//Policy contains a wildcard resource
710
const splitPolicyResource = policyResource.split(':');

0 commit comments

Comments
 (0)