feat: Global-Admin Org-Switcher fuer info@aegis-sight.de
Ermoeglicht dem Global Admin (is_global_admin Flag) zwischen Organisationen zu wechseln. Neue Endpoints: GET /api/auth/organizations, POST /api/auth/switch-org. Org-Dropdown im Header-Menue, nur fuer Global Admin sichtbar. Komplett herausnehmbar (Flag + Code-Bloecke). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Dieser Commit ist enthalten in:
@@ -40,6 +40,7 @@ class UserMeResponse(BaseModel):
|
||||
credits_total: Optional[int] = None
|
||||
credits_remaining: Optional[int] = None
|
||||
credits_percent_used: Optional[float] = None
|
||||
is_global_admin: bool = False
|
||||
|
||||
|
||||
# Incidents (Lagen)
|
||||
@@ -206,3 +207,16 @@ class FeedbackRequest(BaseModel):
|
||||
message: str = Field(min_length=10, max_length=5000)
|
||||
|
||||
|
||||
|
||||
|
||||
# --- Global Admin: Org-Wechsel (herausnehmbar) ---
|
||||
|
||||
class SwitchOrgRequest(BaseModel):
|
||||
organization_id: int
|
||||
|
||||
|
||||
class OrgListItem(BaseModel):
|
||||
id: int
|
||||
name: str
|
||||
slug: str
|
||||
is_active: bool
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren