mirror of
https://github.com/jhd3197/ServerKit.git
synced 2026-11-14 07:52:53 +09:00
Now that every /api/v1/files endpoint enforces the files.read permission, a user with that permission revoked would only hit 403 toasts. Filter the Files item out of the sidebar and the command palette (usePaletteAuthz) instead, using the resolved permissions already returned by /api/v1/auth/me.