Campus-scoped staff: frontend and e2e

Admin -> Users 'Limit to campuses'; staff campus pickers, reports, dashboards
and audience picker follow the scope (useMyCampuses); scoped people pick one
of their campuses for new events, and church-wide / other campuses' events
open read-only; 'You work with ...' note; warning before turning campuses off
while staff are limited. e2e: scanner refusal naming the campus, scoped
events list and read-only editor.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-27 17:50:03 +02:00
co-authored by Claude Opus 5.5
parent f8a567615c
commit 193cf4267a
14 changed files with 186 additions and 20 deletions
+2
View File
@@ -15,6 +15,8 @@ export type AuthUser = {
noticePromptPending?: boolean;
// Multi-campus: their home campus (the events page starts on it).
homeCampusId?: string | null;
// Campus-scoped staff: the campuses they're limited to (null = every campus).
campusScope?: string[] | null;
};
export type AuthResponse = AuthUser & {