Merged
Size
S
Change Breakdown
Bug Fix100%
#3273fix(webapp): filter dev environments by userId in OrganizationsPresenter

Development environment selection now scoped by user

When multiple team members work in the same organization, each now correctly sees their own development environment rather than accidentally landing on a colleague's. The fix adds a userId check specifically for DEVELOPMENT environment lookups, since all dev environments share the same \"dev\" slug.

On teams with multiple members, the environment picker was returning the wrong development environment. All development environments use the same "dev" slug, so a simple slug lookup could match any team member's dev environment — not just the logged-in user's.

The code now filters DEVELOPMENT environments by orgMember.userId, ensuring the current user gets their own environment. This prevents accidental cross-user environment selection in multi-member teams.

The change lives in the webapp's OrganizationsPresenter, the layer handling organization-level UI logic.

View Original GitHub Description

fix: filter dev environments by userId in OrganizationsPresenter

© 2026 · via Gitpulse