HenniOKF
Documentation

Reference

Permissions

The roles, the permissions per role and who sees which page and which button.

Roles

IdentifierNameIn GermanSentence in the application
(none)guesta visitor who is not signed in
reviewerReviewer"Prüfer"reads and reviews
editorEditor"Redakteur"like reviewer; later also jobs and tags
adminAdmin"Admin"everything; also accounts, settings and status
llmLLM"LLM"an agent with an API key

A new account has the role reviewer unless another is chosen.

Permissions per role

From PERMISSIONS in lib/permissions.ts:

PermissionWhat forGuestReviewerEditorAdminLLM
readstart page and documentationyesyesyesyesyes
accountthe own account under /accountnoyesyesyesyes
settings/settings and the gearnononoyesno
users/users: managing accounts and keysnononoyesno
status/status of a configured instance and the link in the footernononoyesno
comments.allreserved: see every commentnonoyesyesno
jobs.managereserved: create and decide jobsnonoyesyesno
tags.assignreserved: assign and remove tagsnonoyesyesno

The reserved permissions are checked nowhere yet; they belong to later phases. The permissions of those phases are planned in spec/users.md.

What someone sees

WhatGuestReviewerEditorAdminLLM
menu item "Documentation"yesyesyesyesyes
menu item "Sign in"yesnononono
the name of the account in the menunoyesyesyesyes
gear in the headernononoyesno
link "Status" in the footernononoyesno
language switch "EN" and "DE"yesyesyesyesyes
ban and delete at the own accountno
"API keys" at an accountonly at accounts with the role LLM

Rules that are no permissions

  • The last admin account that is not banned can be neither deleted nor banned nor demoted.
  • Only an account with the role LLM gets an API key.
  • The first admin is created by whoever knows the instance token, and only while there is no account.
  • A banned account counts as not signed in.

A new permission is added after Recipes for extending.