feat: Login-as-User (Impersonate) + Default-Path pro User

Admin:
- POST /api/admin/users/{userId}/impersonate – erstellt Token für Zieluser
- Login-as-Button (fa-sign-in) in User-Liste (nicht für sich selbst)
- confirm-Dialog, danach location.reload() mit neuem User-Kontext
- Default-Path Feld + Browse-Button im Admin-Formular

Default-Path:
- Neues Feld default_path in users-Tabelle (TryAddColumn Migration)
- UserRecord.DefaultPath Property
- In allen Endpoints: Admin CRUD, Auth /me, Profile Get/Update
- Profil-Seite: Default-Path Feld + Browse-Button
- Session-Seite: Workspace-Browse nutzt defaultPath als Fallback
This commit is contained in:
Meleki committed 2026-03-05 20:42:21 +01:00
1 parent df68843e82
commit d1355dcb0d
10 files changed
+144 -17

No files matched your search

+1
View File
@@ -12,6 +12,7 @@ public class UserRecord
public bool IsAdmin { get; set; }
public string Persona { get; set; }
public string Settings { get; set; }
public string DefaultPath { get; set; }
public string GetEffectivePersona()
{