YaleSTC / reservations

Manage equipment loans & reservations. Who can borrow what, for how long?
yalestc.github.io/reservations
MIT License
139 stars 58 forks source link

Importing users to ban them broken #1748

Closed orenyk closed 5 years ago

orenyk commented 5 years ago

We've always had a workaround to ban multiple users (e.g. graduating students) by importing a CSV file with their usernames and setting their role to "Banned" (checking the "Update existing users" checkbox). That doesn't appear to be working - the import says it completed successfully but it isn't banning them.

orenyk commented 5 years ago

Turns out that I was mistaken - the old way of doing this was to export a CSV file with all of the relevant users and their attributes, then re-upload with a new role selected. When you only pass in the username it tries to overwrite the other attributes with nil, which then fails validations.