%# Admin role detail body (todo §5), captured into the shell content slot. Config: role { name } members { action, rows: { kind:"group"|"user", label, subject }[] } action = revoke endpoint effective { label }[] users who hold the role (expand) add { action, options: {label,value}[] } action = assign endpoint del { action } delete the whole role csrfToken, error? %><% const role = locals.role; const members = locals.members; const effective = locals.effective; const add = locals.add; const del = locals.del; const csrf = locals.csrfToken; -%>
| Member | Type | Actions |
|---|---|---|
| <%= m.label %> | <%= m.kind === "group" ? "Group" : "User" %> |
Not assigned to anyone yet.
<% } -%>Everyone who holds this role — directly or through a group (resolved by Keto).
<% if (effective.length) { -%>No users hold this role yet.
<% } -%>All users and groups already have this role.
<% } -%>