import{CACHE_CONTROL_NO_CACHE_HEADER_VALUE as o}from"../../constants/common.js";import{filterDataByAccessDeep as c}from"../../utils/rbac.js";function f(a){return async t=>{const{isAuthenticated:e,teams:n,claims:{email:r}}=t.get("auth"),i=c(a.getGlobalData(),{isAuthenticated:e,email:r,teams:n},a.config.rbac,a.config.requiresLogin);return t.json({...i},200,{"Cache-Control":o})}}export{f as appDataHandler};
