Closed GordiNoki closed 1 year ago
Yup, noticed this yesterday! We're checking for truthiness rather than strict undefined in one place that results in no action if roles
is 0.
Was this fixed in a recent PR?
Yes, fixed in af7b4cc
Ah yeah, I thought this was a frontend change but no, just a backend bug
@tsa96 Have you fixed the same bug with roles tho?
Don't see where it would occur in the code for roles. Probably should've added E2E tests for both bans and roles, but busy with other stuff and not sure it's worth a dedicated PR. If you want to, feel free!
Oh, it was fixed long ago. Whatever
Describe the bug Bans are not updated when you try to delete them all To Reproduce Steps to reproduce the behavior:
Expected behavior "bans" field of user to turn 0, all checkboxes to be disabled
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Website Information
Additional context The reason may be an error when checking the existence of the "bans" field in update data, cause it's value is 0