SnapOtter
f86ef124c2
fix: grant admin role to anonymous user and add DEFAULT_TOOL_VIEW env var
...
When AUTH_ENABLED=false, the anonymous user was assigned the "user" role
which lacks settings:write permission, making all settings saves return
403. Since no admin exists when auth is disabled, settings were
permanently read-only. Promote the anonymous user to "admin" so the
single user has full control of the instance.
Also adds DEFAULT_TOOL_VIEW env var (sidebar|fullscreen) following the
existing DEFAULT_THEME pattern, seeded via ensureDefaultSettings() on
first boot.
Closes #135
2026-05-16 11:37:28 +08:00
..
2026-05-09 09:02:29 +08:00
2026-05-13 14:18:49 +08:00
2026-04-23 10:58:56 +08:00
2026-04-29 23:47:19 +08:00
2026-04-26 12:03:08 +08:00
2026-05-09 07:35:27 +08:00
2026-05-16 11:37:28 +08:00
2026-05-09 09:02:29 +08:00
2026-05-09 09:02:29 +08:00
2026-05-09 09:02:29 +08:00
2026-05-09 09:02:29 +08:00
2026-05-09 07:35:27 +08:00
2026-05-09 09:02:29 +08:00
2026-05-09 07:35:27 +08:00
2026-05-09 09:02:29 +08:00
2026-05-09 09:02:29 +08:00
2026-05-09 13:12:11 +08:00
2026-05-06 21:38:12 +08:00
2026-05-16 10:02:19 +08:00
2026-05-07 19:41:30 +08:00
2026-05-09 07:35:27 +08:00
2026-05-13 21:33:50 +08:00
2026-05-09 09:02:29 +08:00
2026-05-09 07:35:27 +08:00
2026-05-09 09:02:29 +08:00
2026-05-09 09:02:29 +08:00
2026-05-09 13:03:57 +08:00
2026-05-09 13:03:57 +08:00
2026-05-11 22:48:05 +08:00
2026-05-08 16:01:46 +08:00
2026-04-06 12:53:53 +08:00
2026-04-23 17:12:02 +08:00
2026-05-09 07:35:27 +08:00
2026-05-07 19:41:30 +08:00
2026-05-09 09:02:29 +08:00
2026-05-09 09:02:29 +08:00
2026-05-07 19:41:30 +08:00
2026-05-09 09:02:29 +08:00
2026-05-09 09:02:29 +08:00
2026-05-13 21:33:50 +08:00
2026-05-09 09:02:29 +08:00
2026-05-09 07:35:27 +08:00
2026-05-09 09:02:29 +08:00
2026-05-09 07:35:27 +08:00
2026-05-13 21:33:50 +08:00
2026-05-09 09:02:29 +08:00
2026-05-09 09:02:29 +08:00
2026-04-22 18:10:04 +08:00
2026-05-16 11:37:28 +08:00
2026-05-09 09:02:29 +08:00