summaryrefslogtreecommitdiffstats
path: root/wallace
diff options
context:
space:
mode:
Diffstat (limited to 'wallace')
-rw-r--r--wallace/module_resources.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/wallace/module_resources.py b/wallace/module_resources.py
index 5e07552..b99cf1a 100644
--- a/wallace/module_resources.py
+++ b/wallace/module_resources.py
@@ -526,7 +526,9 @@ def accept_reservation_request(itip_event, resource, delegator=None):
)
owner = get_resource_owner(resource)
- send_response(delegator['mail'] if delegator else resource['mail'], itip_event, owner)
+
+ if saved:
+ send_response(delegator['mail'] if delegator else resource['mail'], itip_event, owner)
if owner:
send_owner_notification(resource, owner, itip_event, saved)