Skip to content

Commit e5e62d7

Browse files
committed
token scopes
1 parent 8854c3e commit e5e62d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

models/jwt/JwtService.cfc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ component accessors="true" singleton{
574574
// Check if the user has the right permissions?
575575
results.allow = (
576576
tokenHasScopes( arguments.permissions, payload.scopes )
577-
&&
577+
||
578578
getAuthService().getUser().hasPermission( arguments.permissions )
579579
);
580580
results.type = "authorization";
@@ -588,7 +588,7 @@ component accessors="true" singleton{
588588
}
589589

590590
/**
591-
* Verify if the jwt token has the appripriate scopes
591+
* Verify if the jwt token has the appropriate scopes
592592
*/
593593
private function tokenHasScopes( required permission, required scopes ){
594594
if( isSimpleValue( arguments.permission) ){

0 commit comments

Comments
 (0)