In the startup code for the MEAN framework there's a line of code shown below
if (!!~this.roles.indexOf('*')) {
It's located in the public/modules/core/services/menus.client.service.js file in the shouldRender function.
var shouldRender = function(user) {
if (user) {
if (!!~this.roles.indexOf('*')) { //Here is the code
return true;
} else {
for (var userRoleIndex in user.roles) {
for (var roleIndex in this.roles) {
if (this.roles[roleIndex] === user.roles[userRoleIndex]) {
return true;
}
}
}
}
} else {
return this.isPublic;
}
return false;
};