Skip to content

Commit

Permalink
Merge pull request #185 from andersinno/ttva-214-securitas-flow-email
Browse files Browse the repository at this point in the history
Securitas Flow: Use email address from reservation (TTVA-214)
  • Loading branch information
jopesy authored Nov 12, 2024
2 parents 692873e + 9607160 commit 966f581
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kulkunen/drivers/securitas.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def install_grant(self, grant):
assert grant.state == grant.INSTALLING

user = grant.reservation.user
email = grant.reservation.reserver_email_address or user.email

user_id = str(user.pk)

Expand All @@ -65,7 +66,7 @@ def install_grant(self, grant):
"userExtId": user_id,
"firstName": user.first_name,
"lastName": user.last_name,
"email": user.email,
"email": email,
"notifyUser": True,
**params,
},
Expand Down

0 comments on commit 966f581

Please sign in to comment.