Reference
Permissions
The roles, the permissions per role and who sees which page and which button.
Roles
| Identifier | Name | In German | Sentence in the application |
|---|---|---|---|
| (none) | guest | a visitor who is not signed in | |
reviewer | Reviewer | "Prüfer" | reads and reviews |
editor | Editor | "Redakteur" | like reviewer; later also jobs and tags |
admin | Admin | "Admin" | everything; also accounts, settings and status |
llm | LLM | "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:
| Permission | What for | Guest | Reviewer | Editor | Admin | LLM |
|---|---|---|---|---|---|---|
read | start page and documentation | yes | yes | yes | yes | yes |
account | the own account under /account | no | yes | yes | yes | yes |
settings | /settings and the gear | no | no | no | yes | no |
users | /users: managing accounts and keys | no | no | no | yes | no |
status | /status of a configured instance and the link in the footer | no | no | no | yes | no |
comments.all | reserved: see every comment | no | no | yes | yes | no |
jobs.manage | reserved: create and decide jobs | no | no | yes | yes | no |
tags.assign | reserved: assign and remove tags | no | no | yes | yes | no |
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
| What | Guest | Reviewer | Editor | Admin | LLM |
|---|---|---|---|---|---|
| menu item "Documentation" | yes | yes | yes | yes | yes |
| menu item "Sign in" | yes | no | no | no | no |
| the name of the account in the menu | no | yes | yes | yes | yes |
| gear in the header | no | no | no | yes | no |
| link "Status" in the footer | no | no | no | yes | no |
| language switch "EN" and "DE" | yes | yes | yes | yes | yes |
| ban and delete at the own account | no | ||||
| "API keys" at an account | only 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.