The select_org LiveView event was updating default_organization_id in the database but not the session's current_organization_id. Since load_default_organization prioritizes the session value, users would always get redirected back to the stale org. Replaced with a controller POST action that updates both the session and DB default before redirecting. |
||
|---|---|---|
| .. | ||
| channels | ||
| components | ||
| controllers | ||
| graphql | ||
| helpers | ||
| live | ||
| plugs | ||
| changelog_parser.ex | ||
| endpoint.ex | ||
| gettext.ex | ||
| gettext_helpers.ex | ||
| permissions.ex | ||
| plug_exceptions.ex | ||
| router.ex | ||
| telemetry.ex | ||
| user_auth.ex | ||