Skip to content

Commit

Permalink
Merge pull request #1 from nu1silva/6.1.x-development
Browse files Browse the repository at this point in the history
Fix for APIMANAGER-5575
  • Loading branch information
nu1silva committed Sep 4, 2017
2 parents c8a8289 + a254d53 commit 4c54611
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,11 @@ GrantTypes.prototype.getMap = function(selected){
grants = selected.split(" ");
var map = [];
for(var grant in this.available){
var disabled = false;
if(grant == "authorization_code" || grant == "implicit")
disabled = true;
var selected = grants.indexOf(grant) > -1;
map.push({ key: grant , name:this.available[grant], "selected" : selected});
map.push({ key: grant , name:this.available[grant], "selected" : selected, "disabled" : disabled});
}

return map;
Expand Down

0 comments on commit 4c54611

Please sign in to comment.