Updating own profile, via Admin Area, when you have admin rights fails.
Created by: zipkid
When you have admin right and you go to 'Admin Area', select your own user and edit.
When saving (any or no changes) you get a 500 error as apparently the 'admin' valuse is passed as null (as it is disabled)
in production.log
Processing by Admin::UsersController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"<token>", "user"=>{"name"=>"GOETHALS Stefan", "username"=>"zipkid", "email"=>"<email>", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "projects_limit"=>"10", "can_create_group"=>"1", "skype"=>"zipkid", "linkedin"=>"zipkid", "twitter"=>"zipkid", "website_url"=>"zipkid.eu"}, "id"=>"zipkid"}
Mysql2::Error: Column 'admin' cannot be null: UPDATE `users` SET `admin` = NULL, `updated_at` = '2014-02-24 14:07:41' WHERE `users`.`id` = 2
Completed 500 Internal Server Error in 19ms
ActiveRecord::StatementInvalid (Mysql2::Error: Column 'admin' cannot be null: UPDATE `users` SET `admin` = NULL, `updated_at` = '2014-02-24 14:07:41' WHERE `users`.`id` = 2):
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'