Fixing IOTS-160

revert-70aa11f8
Ace 9 years ago
parent 073ed252e7
commit ecd386adf0

@ -46,7 +46,15 @@ function onRequest(context) {
}
response = userModule.getRolesByUserStore(userStore);
if (response["status"] == "success") {
page["userRoles"] = response["content"];
var roleVals = response["content"];
var filteredRoles = [];
var prefix = "Application";
for (i = 0; i < roleVals.length; i++) {
if(roleVals[i].indexOf(prefix) < 0){
filteredRoles.push(roleVals[i]);
}
}
page["userRoles"] = filteredRoles;
}
}

Loading…
Cancel
Save