Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing #5470: Checkin emails not working #5838

Merged
merged 3 commits into from
Jul 16, 2018

Conversation

tilldeeke
Copy link
Contributor

@tilldeeke tilldeeke commented Jul 14, 2018

This PR fixes the routing of checkin notifications, sending them if the category of the checked in item requires:

  1. a notification to be sent to the user on checkin/checkout.

It also fixes the routing of checkout notifications, sending them if the category of the checked out item requires either

  1. the user to accept the item or
  2. a notification to be sent to the user on checkin/checkout or
  3. a EULA was set either on the category or globally

The original issue (#5470) just focuses on the checkin notifications, but the checkout notifications would have shown the same error.

This fixes the routing of the notifications, to only send „checkin“ emails if the „mail on checkin“ flag on the category was set. (and we checkout to a user with a non-empty email)
Notifications to users should be send if the category of the resource (accessory/asset/consumable/license):

a) requires the user to confirm acceptance
b) should send notifications on checkin/checkout
@tilldeeke tilldeeke requested a review from snipe as a code owner July 14, 2018 23:07
Adds back a check for the EULA, since the user should receive the EULA if it was set (regardless of other setings on the category, etc)
@snipe snipe merged commit 3f33440 into snipe:develop Jul 16, 2018
@snipe
Copy link
Owner

snipe commented Jul 16, 2018

You're on fire!

community-thankyou

@tilldeeke tilldeeke deleted the fixing-checkin-emails-not-working-5470 branch July 16, 2018 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants