Add proper variable declaration for AuthZ JS (#14561)
This commit is contained in:
parent
53635e3317
commit
c56b69bbc9
1 changed files with 1 additions and 1 deletions
|
@ -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 += ",";
|
||||
|
|
Loading…
Reference in a new issue