This repository has been archived on 2026-05-24. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
app/apps
groombook-ci[bot] 9724327559 fix(api): correct superuser guard condition from <= 1 to < 1
The guardrail should block ONLY when there are zero other active super
users. With the previous <= 1 condition, revoking/deleting a superuser
was incorrectly blocked when there were exactly 2 superusers total
(count of 1 other <= 1 triggered the block). Change to < 1 so that
having 1+ other superuser(s) correctly allows the operation.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-03-29 21:15:43 +00:00
..