summaryrefslogtreecommitdiffstats
path: root/wallace/module_resources.py
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2014-07-09 03:43:14 -0400
committerThomas Bruederli <bruederli@kolabsys.com>2014-07-09 03:43:14 -0400
commit7977586fcff0eb783ff4f17c2aa0bd2a1de262aa (patch)
treea62892841a388905f0ba1c929cad0fbf7ecabaa1 /wallace/module_resources.py
parent5038b40a73f111293abff38a82f6bc1764d164ba (diff)
downloadpykolab-7977586fcff0eb783ff4f17c2aa0bd2a1de262aa.tar.gz
Don't send iTip replies if resource booking failed (event not saved in resource calendar)
Diffstat (limited to 'wallace/module_resources.py')
-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)