diff --git a/app/controllers/invitations_controller.rb b/app/controllers/invitations_controller.rb index 865b8bb39..facb50120 100644 --- a/app/controllers/invitations_controller.rb +++ b/app/controllers/invitations_controller.rb @@ -25,7 +25,7 @@ def create self.resource = resource_class.invite!(all_params, current_inviter) if resource.errors.empty? grant_default_permissions(resource) - EventLog.record_account_invitation(@user, current_user) + EventLog.record_account_invitation(resource, current_user) set_flash_message :notice, :send_instructions, email: resource.email respond_with resource, location: after_invite_path_for(resource) else