Guides

People, roles and reviews

Invite people to the admin by email, give them roles per site, and let editors approve what authors and their agents publish.

People, roles and reviews

People reach Hollware through the admin at /admin/. They sign in with a passkey, or with an account of a provider the deployment lists, such as Google or Microsoft (Sign in with a provider): there are no passwords.

Roles

A person has a role in each site they are a member of:

RoleMay
ownereverything; only an owner names, changes or removes an owner, deletes or restores the site, reads its backups, purges entries and anonymizes people
admineverything else an owner does: the structure of the site, its people, tokens and invitations
editorread, write and publish, and approve reviews
authorread and write; what they publish waits for an editor's approval
reviewerread entries and reviews, and comment on them

What parts an owner from an admin is the scope site:owner. A reviewer opens an entry in the admin to read it, never to change it.

A token never does more than the role of its person, as it is now: demoting someone takes the scopes away from their tokens at once.

An agent member is a member that is no person: it writes as an author, and an agent acts as it (Agents in your reviews). People lists agent members apart. An owner can give one a lasting token, for an agent that hears no events.

In the admin, under People, an owner or an admin gives a member another role, or removes them from the site, with every token and app they had of it; only an owner does it to an owner. A site always keeps one owner: make another person an owner before the last one steps down.

Invite someone

In the admin, under People, an owner or an admin invites a person by their Email, as an admin, an editor, an author or a reviewer. Every invitation names an address: Hollware knows the person by it, and they may sign in with it through a provider later, even after they set up a passkey.

When the deployment sends email (below), Hollware mails the invitation to that address, in the language of whoever invites, and shows its link to nobody, so the address counts as verified. Otherwise the admin shows you the link, valid once and for seven days, to send yourself. The person opens it to set up a passkey; signing in through a provider with that verified address accepts it too, with or without the link. From the command line, which prints the link:

npx hollware invite --role author --email ada@example.com --remote

Someone who already has an account in this Hollware, for another site, accepts with the passkey they have: the page of the link offers Accept with my passkey, and no second account is made.

An address that is a member of the site already, or that has an invitation waiting, gets no second one. People lists the invitations that wait and those that expired: Renew gives one a new link and a new term, and the old link stops working; Revoke stops the link of one at once. From the command line, hollware invite list and hollware invite revoke <id>.

An owner or an admin can also let people of a domain in with no invitation, site by site: see Who gets in.

An owner who needs a passkey on a new device gets a setup link with hollware invite --owner.

Send invitations by email

Hollware sends mail through Cloudflare Email Service. Add a send_email binding named EMAIL to the wrangler.jsonc of your Hollware, and the address it sends from as HOLLWARE_EMAIL_FROM, on a domain onboarded to Email Service:

"send_email": [{ "name": "EMAIL" }],
"vars": { "HOLLWARE_EMAIL_FROM": "Hollware <cms@example.com>" }

Without them, or when a mail fails, the admin shows the link instead, and the log of the Worker says why (invitation_mail_failed).

Reviews

When someone without content:publish calls publish, the entry is not published. A review opens instead, with the revision they asked for, and waits in the admin under Reviews. A review can hold several entries, published or unpublished together: see Reviews of several entries.

An editor sees the diff against what is live and the verdict of the contracts, then:

  • approves it: the contracts run again, as publish runs them, and Hollware publishes every entry of the review in the editor's name, in one step, but those left out of the approval;
  • asks for changes, with a note the author and their agent read with list_reviews: they save a new revision and ask again;
  • rejects it, with the reason (reject_review): the change is not to be published at all, and the review closes as rejected. The entry stays as it was; to drop the draft too, restore the revision the site shows from its history.

A new revision of an entry of the review cancels the whole review, and the author asks again: an approval is always of what the editor saw. A site can also make approvals wait for the comments of its agents.

Your name

Each person changes their own name under Account: their revisions, reviews and comments show it. Nobody else can change it, an owner included. The same page adds a passkey, renames one, such as "Work laptop", and removes one they lost, and lists the accounts of providers that sign them in.

Someone who left

People lists under Former members whoever was removed from the site. An owner anonymizes one there: what they wrote stays, and every revision, publication, review, comment and line of the activity log of the site names «A former member» instead of them, without the token, the app and the hash of the IP address it held. Their tokens and invitations of the site go, and the apps they allowed for it. Once no site of the deployment keeps them, they go from it, with their passkeys. Nothing brings their name back, and the activity log records that an owner anonymized someone, without saying who.

Several sites

One person signs in once for the whole deployment, with the same passkeys and accounts, and has a role in each site. In the admin, switch sites from the header; an agent's OAuth grant is for one site, chosen on the consent page.