-
- Downloads
Fix invites not being disabled upon account suspension (#11412)
* Disable invite links from disabled/suspended users * Add has_many invites relationship to users * Destroy unused invites when suspending an account
Showing
- app/controllers/invites_controller.rb 1 addition, 1 deletionapp/controllers/invites_controller.rb
- app/models/invite.rb 2 additions, 2 deletionsapp/models/invite.rb
- app/models/user.rb 1 addition, 0 deletionsapp/models/user.rb
- app/services/suspend_account_service.rb 1 addition, 0 deletionsapp/services/suspend_account_service.rb
- spec/models/invite_spec.rb 11 additions, 5 deletionsspec/models/invite_spec.rb
Please register or sign in to comment