Attempting to edit self, when admin, results in a 500
I wanted to change my Name in GitLab. When I update the name and hit Save changes, I get a 500:
Mysql2::Error: Column 'admin' cannot be null: UPDATE users
SET admin
= NULL, name
= 'Jeff Mitchell (Admin)', updated_at
= '2014-02-21 17:16:31' WHERE users
.id
= 3
Completed 500 Internal Server Error in 8ms
ActiveRecord::StatementInvalid (Mysql2::Error: Column 'admin' cannot be null: UPDATE users
SET admin
= NULL, name
= 'Jeff Mitchell (Admin)', updated_at
= '2014-02-21 17:16:31' WHERE users
.id
= 3):
app/controllers/admin/users_controller.rb:74:in block in update' app/controllers/admin/users_controller.rb:73:in
update'
app/controllers/application_controller.rb:57:in `set_current_user_for_thread'
The admin field is checked but disabled (since you can't remove your own admin rights). My guess is that this translates into no state when running the actual call.