modules/orionode/index.js
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);
}
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);
}
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 ) ; }
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
Check the access rights of the request against the requested resource