We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8854c3e commit e5e62d7Copy full SHA for e5e62d7
models/jwt/JwtService.cfc
@@ -574,7 +574,7 @@ component accessors="true" singleton{
574
// Check if the user has the right permissions?
575
results.allow = (
576
tokenHasScopes( arguments.permissions, payload.scopes )
577
- &&
+ ||
578
getAuthService().getUser().hasPermission( arguments.permissions )
579
);
580
results.type = "authorization";
@@ -588,7 +588,7 @@ component accessors="true" singleton{
588
}
589
590
/**
591
- * Verify if the jwt token has the appripriate scopes
+ * Verify if the jwt token has the appropriate scopes
592
*/
593
private function tokenHasScopes( required permission, required scopes ){
594
if( isSimpleValue( arguments.permission) ){
0 commit comments