-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
If a user is set as "owner" of a stack, an admin is unable to remove them from an organization.
The logs show the correct error, but that error doesn't appear in the UI.
Instead, the user is left in confusion because nothing happens.
StackMembership::StackOwnerError - This user is the only owner of the stack w
ith id 2624. Assign a new owner before removing this user.
[void/main/a6510c056e4143f4ba7d856be83ef0ce] Tue Jan 6 16:24:13 EST E, [2026-01-06T21:24:13.865942 #1] ERROR -- : [0ac17e21-77cf-42d6-b8bc-525d06468be1] app/models/stack_membership.rb:26:in `keep_one_owner'
[void/main/a6510c056e4143f4ba7d856be83ef0ce] Tue Jan 6 16:24:13 EST E, [2026-01-06T21:24:13.865971 #1] ERROR -- : [0ac17e21-77cf-42d6-b8bc-525d06468be1] app/controllers/memberships_controller.rb:40:in `block in destroy'
[void/main/a6510c056e4143f4ba7d856be83ef0ce] Tue Jan 6 16:24:13 EST E, [2026-01-06T21:24:13.866082 #1] ERROR -- : [0ac17e21-77cf-42d6-b8bc-525d06468be1] app/controllers/memberships_controller.rb:38:in `destroy'
[void/main/a6510c056e4143f4ba7d856be83ef0ce] Tue Jan 6 16:24:13 EST E, [2026-01-06T21:24:13.866194 #1] ERROR -- : [0ac17e21-77cf-42d6-b8bc-525d06468be1] config/initializers/cookie_store_logging.rb:7:in `call'
Metadata
Metadata
Assignees
Labels
No labels