code: function checkAccessRights(req, res, next) {
  	const uri = (typeof req.contextPath === "string" && req.baseUrl.substring(req.contextPath.length)) || req.baseUrl;
  	req.user.checkRights(req.user.username, uri, req, res, next);
  }
docs: Check the access rights of the request against the requested resource
  @param {XmlHttpRequest} req The original request
  @param {XmlHttpResponse} res The orginal response
  @param {fn} next The function to advance the Express queue