fix(auth): restricted-User landen nach Login auf eigenen Screens (nicht Tenant-Dashboard)
Login und already-logged-in-Check verwendeten default-Branch für restricted-Rolle, der zum Tenant-Dashboard mit allen Screens führte. Jetzt wie screen_user behandelt. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
787287b328
commit
b4d0a24320
1 changed files with 2 additions and 2 deletions
|
|
@ -51,7 +51,7 @@ func HandleLoginUI(authStore *store.AuthStore, screenStore *store.ScreenStore, c
|
|||
switch u.Role {
|
||||
case "admin":
|
||||
http.Redirect(w, r, "/admin", http.StatusSeeOther)
|
||||
case "screen_user":
|
||||
case "screen_user", "restricted":
|
||||
handleScreenUserRedirect(w, r, screenStore, u)
|
||||
default:
|
||||
if u.TenantSlug != "" {
|
||||
|
|
@ -159,7 +159,7 @@ func HandleLoginPost(authStore *store.AuthStore, screenStore *store.ScreenStore,
|
|||
switch user.Role {
|
||||
case "admin":
|
||||
http.Redirect(w, r, "/admin", http.StatusSeeOther)
|
||||
case "screen_user":
|
||||
case "screen_user", "restricted":
|
||||
handleScreenUserRedirect(w, r, screenStore, user)
|
||||
default:
|
||||
if user.TenantSlug != "" {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue