isAdmin = function (user) {
  user = (typeof user === 'undefined') ? Meteor.user() : user;
  return !!user && !!user.profile && user.profile.admin === true;
};

isAdminById = function (userId) {
  var user = Meteor.users.findOne(userId);
  return isAdmin(user);
};

isVerified = function(user) {
  return !!user && !!user.profile && user.profile.verified === true;
};

isSuperAdmin = function(user) {
  return !!user && !!user.profile && user.profile.superadmin === true;
};
isAdmin = function (user) {
  user = (typeof user === 'undefined') ? Meteor.user() : user;
  return !!user && !!user.profile && user.profile.admin === true;
};

isAdminById = function (userId) {
  var user = Meteor.users.findOne(userId);
  return isAdmin(user);
};

isVerified = function(user) {
  return !!user && !!user.profile && user.profile.verified === true;
};

isSuperAdmin = function(user) {
  user = (typeof user === 'undefined') ? Meteor.user() : user;
  return !!user && !!user.profile && user.profile.superadmin === true;
};
Check for the current user if none is passed to the function
Check for the current user if none is passed to the function
