Add proper variable declaration for AuthZ JS (#14561)

This commit is contained in:
Jon Koops 2022-09-23 17:17:16 +02:00 committed by GitHub
parent 53635e3317
commit c56b69bbc9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -180,7 +180,7 @@ var KeycloakAuthorization = function (keycloak, options) {
if (resource.scopes && resource.scopes.length > 0) {
permission += "#";
for (j = 0; j < resource.scopes.length; j++) {
for (var j = 0; j < resource.scopes.length; j++) {
var scope = resource.scopes[j];
if (permission.indexOf('#') != permission.length - 1) {
permission += ",";