// "My access": the signed-in account's own roles and what each allows (open to every account). import { esc } from "./math.js"; import { ROLE_ALLOWS, ROLE_NAMES, visibleRoles } from "./roles.js"; export async function show(me, view) { const held = visibleRoles(me.roles).filter(role => me.roles.includes(role)); view(`

ההרשאות שלי

${esc(me.email)}

${me.roles.includes("developer") ? "" : `

תפקיד חדש נותן מנהל ההרשאות.

`}
`); }