We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6893677 commit 9460f81Copy full SHA for 9460f81
1 file changed
packages/uma/src/policies/authorizers/NamespacedAuthorizer.ts
@@ -42,7 +42,7 @@ export class NamespacedAuthorizer implements Authorizer {
42
}
43
44
// Find applicable authorizer
45
- const authorizer = ns ? this.authorizers[ns] : this.fallback;
+ const authorizer = (ns && this.authorizers[ns]) || this.fallback;
46
47
// Delegate to authorizer
48
return authorizer.permissions(claims, query);
0 commit comments