Skip to content

Commit

Permalink
fix load user type
Browse files Browse the repository at this point in the history
  • Loading branch information
cbellone committed May 11, 2023
1 parent b5ae16c commit 26f4a50
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

$q.all([OrganizationService.getAllOrganizations(), UserService.getAllRoles()]).then(function(results) {
ctrl.organizations = results[0].data;
ctrl.roles = _.filter(results[1].data, function(r) { return r.target === 'API_KEY'; });
ctrl.roles = _.filter(results[1].data, function(r) { return r.target.indexOf('API_KEY') > -1; });
});
};

Expand Down

0 comments on commit 26f4a50

Please sign in to comment.