1.1 --- a/imiptools/handlers/person_outgoing.py Mon Sep 07 23:46:13 2015 +0200
1.2 +++ b/imiptools/handlers/person_outgoing.py Mon Sep 07 23:46:47 2015 +0200
1.3 @@ -20,6 +20,7 @@
1.4 this program. If not, see <http://www.gnu.org/licenses/>.
1.5 """
1.6
1.7 +from imiptools.client import Client
1.8 from imiptools.data import uri_dict, uri_item, uri_values
1.9 from imiptools.handlers import Handler
1.10 from imiptools.handlers.common import CommonEvent
1.11 @@ -43,6 +44,8 @@
1.12 "Add a recurrence for the current object."
1.13
1.14 self.set_identity()
1.15 + if not Client.is_participating(self):
1.16 + return False
1.17
1.18 # Obtain valid organiser and attendee details.
1.19
1.20 @@ -79,6 +82,8 @@
1.21 """
1.22
1.23 self.set_identity(from_organiser)
1.24 + if not Client.is_participating(self):
1.25 + return False
1.26
1.27 # Check for a new event, tolerating not-strictly-new events if the
1.28 # attendee is responding.
1.29 @@ -124,6 +129,8 @@
1.30 """
1.31
1.32 self.set_identity(True)
1.33 + if not Client.is_participating(self):
1.34 + return False
1.35
1.36 # Check for event using UID.
1.37