1const s=e=>e&&e.globalRole?.toLowerCase()||"read_only",l=(e,n)=>{const a=s(e);if(a==="read_only")return!1;if(["super_admin","sales_head","org_admin","admin","module_admin"].includes(a)||e?.isOrgAdmin||d(e))return!0;if(!n)return!1;const t=n.createdById||n.created_by,i=n.assignedToId||n.accountManagerId||n.assigned_to||n.ownerId;return t===e?.id||i===e?.id},o=["super_admin","sales_head","org_admin","admin","module_admin"];function d(e){return!!e?.accessibleModules?.some(n=>String(n.moduleId).toLowerCase()==="sales"&&n.isModuleAdmin)}function r(e){return e.assignedToId||e.accountManagerId||e.assigned_to||e.assigneeId||e.ownerId}const u=(e,n)=>{const a=s(e);if(a==="read_only")return!1;if(o.includes(a)||e?.isOrgAdmin||d(e))return!0;if(!n)return!1;const t=n.createdById||n.created_by,i=r(n);return t===e?.id||i===e?.id};export{l as a,u as c};
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.