mirror of
https://github.com/D-Modem/bbs.git
synced 2026-11-28 17:38:04 -08:00
Add access levels: levels, flags, requirements, limits, validation
Users have a level (0-255) and flags (A-Z). [level N] sections say what
a range of levels may do: time online a day (warned at 5 and 1 minutes,
hung up at the end; doors' limits cut to what is left), downloads a day
(counted by every way: the BBS, 3270, FTP, the API), and whether they
may post, mail (else only the sysop), chat, page, download, upload and
open doors.
Requirements ("30 F !X", "sysop") are put on message areas (reading and
posting), file areas (downloading and uploading), doors, menus and menu
items ("x = menu:extras Extras | 50 X"). They are checked in the core,
so the text BBS, 3270s, FTP, NNTP and the API keep them alike: an area a
user may not read is not listed, opened or found by number or
Message-ID.
New users start at new_user_level and are told they wait; the sysop
validates them on the BBS (V on the main menu), by bbs user
waiting/validate/level/flags, or by PATCH /api/v1/admin/users. Users
see their access in the profile and /api/v1/me; no one changes their
own. Drop files carry the caller's level.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
This commit is contained in:
43 files changed
+1660
-111
No files matched your search
@@ -63,7 +63,7 @@ Errors are `{"error": "...", "code": "..."}`.
|
||||
| `POST /login`, `POST /logout` | a session token; ending it | (none), any |
|
||||
| `GET /system` | the name, sysop, counts, features | anonymous |
|
||||
| `GET /who` | who is online (with each `terminal`, as it said what it is) | anonymous |
|
||||
| `GET`, `PATCH /me` | your account; change your location or password | read |
|
||||
| `GET`, `PATCH /me` | your account and access; change your location or password | read |
|
||||
| `GET /me/tokens`, `DELETE /me/tokens/{id}` | your tokens; revoke one | any |
|
||||
| `GET /me/keys` | your SSH keys | read |
|
||||
| `POST /me/keys`, `DELETE /me/keys/{id}` | add an SSH key (`{"key": "ssh-ed25519 ..."}`, from a login's session only); delete one | any |
|
||||
@@ -83,8 +83,8 @@ Errors are `{"error": "...", "code": "..."}`.
|
||||
| `GET /events` | server-sent events | chat or read |
|
||||
| `GET /ws`, `GET /ws/proto` | WebSockets | chat |
|
||||
| `GET /admin/pages`, `POST /admin/pages/{node}/answer` | pages waiting; answer one (node 0: the longest waiting) | sysop |
|
||||
| `POST /admin/users`, `PATCH /admin/users/{name}` | add a user; lock, unlock, make sysop, set password | sysop |
|
||||
| `POST /admin/areas`, `PATCH /admin/areas/{id}` | add an area; set its newsgroup or echo tag | sysop |
|
||||
| `POST /admin/users`, `PATCH /admin/users/{name}` | add a user; lock, unlock, make sysop, set password, `level`, `flags` | sysop |
|
||||
| `POST /admin/areas`, `PATCH /admin/areas/{id}` | add an area; set its newsgroup, echo tag, `read_require`, `post_require` | sysop |
|
||||
| `POST /admin/nodes/{n}/kick` | throw a caller off | sysop |
|
||||
| `GET /admin/fido`, `POST /admin/fido/poll` | FidoNet links and outbound; call them now | sysop |
|
||||
| `GET /admin/news`, `POST /admin/news/sync` | news peers; sync now | sysop |
|
||||
|
||||
Reference in new issue
Block a user