diff --git a/docker/ss-atlas/internal/handlers/dashboard.go b/docker/ss-atlas/internal/handlers/dashboard.go index 48e3dae..437bbf9 100644 --- a/docker/ss-atlas/internal/handlers/dashboard.go +++ b/docker/ss-atlas/internal/handlers/dashboard.go @@ -15,6 +15,14 @@ func (a *App) handleDashboard(w http.ResponseWriter, r *http.Request) { remoteGroups := r.Header.Get("Remote-Groups") isSubscribed := remoteGroups != "" && contains(remoteGroups, "customers") + // Authelia session may be stale (user was added to customers after login). + if !isSubscribed && remoteUser != "" { + inGroup, _ := a.ldap.IsInGroup(remoteUser, "customers") + if inGroup { + isSubscribed = true + } + } + var customerID string stackDeployed := false stackRunning := false