function accessAllowedRead(req, user) {
  const role =
    req.user && req.user.id
      ? req.user.role_id
      : user && user.role_id
        ? user.role_id
        : 100;

  if (role === 1) return true;
  return false;
}
Check that user has right to read sc service api data.
Only admin currently can call this api.
@param {object} req httprequest
@param {object} user user based on access token
@returns {boolean}