This commit is contained in:
Mateusz Gruszczyński
2026-05-26 08:25:17 +02:00
parent 77a161a7f6
commit 5ab750226a
5 changed files with 62 additions and 11 deletions

View File

@@ -31,11 +31,15 @@ RTORRENT_WRITE_PREFIXES = (
"/api/rss",
"/api/smart-queue",
"/api/automations",
"/api/download-planner",
"/api/poller/settings",
"/api/operation-logs",
"/api/jobs",
)
RTORRENT_CONFIG_PREFIXES = ("/api/rtorrent-config",)
ADMIN_PREFIXES = ("/api/auth/users", "/api/profiles")
# Note: API reads that expose rTorrent/profile data must also respect profile permissions.
# Note: Planner, poller and operation-log endpoints are profile-scoped and must follow the active profile context.
PROFILE_READ_PREFIXES = (
"/api/torrents",
"/api/torrent-stats",
@@ -50,6 +54,9 @@ PROFILE_READ_PREFIXES = (
"/api/smart-queue",
"/api/traffic/history",
"/api/automations",
"/api/download-planner",
"/api/poller/settings",
"/api/operation-logs",
)