fix(app): sheet creation form only for editors; review findings (V1-2.5 K)

Verifier C4: /app/admin/sheets/new shows Accès non autorisé without sheet_editor (display rule, server unchanged), tests. Security: M7 restates get_sheet_version grants; e2e enrolment check never prints the setup key. Contract clarifications: phone skips, run evidence, one intermittent e2e failure tracked.
This commit is contained in:
bchanot committed 2026-11-02 18:18:54 +01:00
1 parent 3d2b5a5f1c
commit 02625a76b6
5 files changed
+46 -3

No files matched your search

@@ -244,3 +244,6 @@ revoke all on function public.list_official_sheets_admin() from public, anon, se
revoke all on function public.get_official_sheet_admin(uuid) from public, anon, service_role;
grant execute on function public.list_official_sheets_admin() to authenticated;
grant execute on function public.get_official_sheet_admin(uuid) to authenticated;
-- Kept by `create or replace`, stated again so this file stands alone.
revoke all on function public.get_sheet_version(uuid) from public, anon, service_role;
grant execute on function public.get_sheet_version(uuid) to authenticated;