{{define "content"}} {{$viewer := .Content.Viewer}} {{$grantable := .Content.Grantable}}
| Member | Role | Status | Actions |
|---|---|---|---|
| {{.Email}}{{if .Name}} ({{.Name}}){{end}} | {{.Role.Title}} | {{if .Active}}Active{{else}}Removed{{end}} | {{if mayActOn $viewer .}} {{/* The role selector is built from Grantable, never from the three role constants. An Admin may grant only Member — idear refuses a grant that is not strictly below the granter's own rank — so a selector offering Admin to an Admin would 403 on every submit, and one offering Owner would 403 for everybody including the Owner. Hiding a control is never the enforcement; the store refuses either way. */}} {{if $grantable}} {{end}} {{if .Active}} {{else}} {{end}} {{end}} |