mirror of
https://github.com/jhd3197/ServerKit.git
synced 2026-11-09 05:24:49 +09:00
Re-reading python.py showed every mutating endpoint is independently @admin_required (runs before the shared get_app_or_404 gate), so that gate only governs the 4 read GETs (packages/env/status/gunicorn-config). Pointing it at can_access_app safely opens those to grantees while the admin-only mutations stay untouched — no per-method split needed. With this, every app-related blueprint is grant-aware. Also fixes the int-vs-str identity comparison in the helper. Verified: a python read-gate test (stranger 403, grantee passes), full suite 132 passed. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>