SHOULD E19: Admin Suspend silently ACTIVATES Pending users #185

Closed
opened 2026-11-12 06:31:00 +01:00 by amiryahaya · 0 comments
Owner

UsersPage.tsx:68 newStatus = status==='active'?'suspended':'active' — for Pending users the red 'Suspend' button computes 'active' and skips confirm (target !== 'suspended'). One misclick approves a suspicious signup and lifts the org_approval_pending gate. Fix: derive from status (suspended?'active':'suspended'); label+confirm+PATCH agree.

UsersPage.tsx:68 newStatus = status==='active'?'suspended':'active' — for Pending users the red 'Suspend' button computes 'active' and skips confirm (target !== 'suspended'). One misclick approves a suspicious signup and lifts the org_approval_pending gate. Fix: derive from status (suspended?'active':'suspended'); label+confirm+PATCH agree.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
primatekuntech/failsulit#185
No description provided.