Public Access
1
0

feat: introduce app-admin authorization and audit logging

- add migrations for owner/member workspace roles and application admins

- centralize /admin access checks with DB-backed admin resolution

- audit admin analytics/billing route access

- update account/admin UI typing and env/docs for ADMIN_EMAILS fallback behavior
This commit is contained in:
pguerrerox
2026-05-25 15:25:59 +00:00
parent 5508e15da1
commit f5e7e966e3
14 changed files with 269 additions and 302 deletions
+2 -1
View File
@@ -18,7 +18,7 @@ export interface SessionUser extends AppUser {
}
export type WorkspaceType = 'personal' | 'company';
export type WorkspaceRole = 'owner' | 'admin' | 'member';
export type WorkspaceRole = 'owner' | 'member';
export interface AccountWorkspace {
id: string;
@@ -174,6 +174,7 @@ export interface AccountPageData {
summary: AccountSummary;
billing: AccountBillingState;
team: AccountTeamPlaceholder;
isAdmin?: boolean;
isBillingAdmin?: boolean;
}