mirror of
https://github.com/jhd3197/ServerKit.git
synced 2026-11-09 13:35:12 +09:00
Mutating File Manager endpoints (write/create/mkdir/delete/rename/copy/ move/chmod/upload and the S3 equivalents) only required a valid JWT, so a viewer account (files.write=false) could write and delete files. They now require the files.write permission via permission_required(). Read endpoints are unchanged. Adds regression tests covering both advisories. Co-authored-by: AruvasgaChithan <AruvasgaChithan@users.noreply.github.com>