docs: function checkCollabAuthenticated(req, res, next) {
  		if (req.user) {
  			req.user.workspaceDir = options.workspaceDir + (req.user.workspace ? "/" + req.user.workspace : "");
  			next();
  		} else if (req.headers['authorization'] && checkCollabServerToken(req.headers['authorization'])){
  			next();
  		} else {
  			api.writeError(401, res, "Not authenticated");
  		}
  	}