feat: owner read-only view-as from team users table
Allow org owners to inspect any member's data scope via dual JWT; server blocks mutations and team page stays reachable for return. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -44,6 +44,16 @@ export interface AuthUserDto {
|
||||
subscription?: SubscriptionSummaryDto | null;
|
||||
/** اگر باشد، این کاربر سوئیچ «بایگانی اطلاعات قبل» را دارد */
|
||||
priorArchive?: { lens: "current" | "archive"; cutoffAt: string | null } | null;
|
||||
/**
|
||||
* مالک در حال مشاهدهٔ فقطخواندنی بهجای این کاربر است.
|
||||
* role/id مربوط به کاربر مشاهدهشده است.
|
||||
*/
|
||||
viewAs?: {
|
||||
impersonatorId: string;
|
||||
impersonatorFullName: string;
|
||||
/** صفحهٔ تیم برای مالک واقعی باز بماند */
|
||||
canOpenTeamSettings: boolean;
|
||||
} | null;
|
||||
}
|
||||
|
||||
export type BillingPlanCode =
|
||||
|
||||
Reference in New Issue
Block a user