1import{I as i}from"./index-CpeGhXo5.js";import{p as m}from"./productPermissions-BxvtUi1l.js";function l(s,e){return s?.accessibleModules?.find(u=>String(u.moduleId).toLowerCase()===String(e).toLowerCase())}function f(s,e,u){const r=i(o=>o.auth.user);if(!r)return!1;const n=u;if(r.globalRole==="SUPER_ADMIN"||r.isOrgAdmin)return!0;const t=l(r,n);if(!t)return!1;if(t.isModuleAdmin)return!0;const c=t.rawPermissionSlugs??[];return m(c,s,e)?!0:t.permissions.some(o=>o.action===s&&(o.resource===e||o.resource==="*"))}function A(s){const e=i(n=>n.auth.user);return e?e.globalRole==="SUPER_ADMIN"||e.isOrgAdmin?!0:!!l(e,s)?.isModuleAdmin:!1}export{A as a,f as u};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.