whole_func_string: function loadPages (req, res, next) {
    const { zlSite } = res.locals;
  
    // get site (or subsite) pages
    var app = req.app;
  
    // build tree of allowed menu/states for this user
    app.models.zlSiteContentSet.menupages(zlSite.zsId, req, res, (err, pages) => {
        // add pages to response
        zlSite.pages = _.cloneDeep(pages);
        next();
    });
  }
func_code_string: function loadPages (req, res, next) {
    const { zlSite } = res.locals;
  
    // get site (or subsite) pages
    var app = req.app;
  
    // build tree of allowed menu/states for this user
    app.models.zlSiteContentSet.menupages(zlSite.zsId, req, res, (err, pages) => {
        // add pages to response
        zlSite.pages = _.cloneDeep(pages);
        next();
    });
  }
func_documentation_string: loads pages