1.1 --- a/imipweb/event.py Fri Oct 16 19:26:32 2015 +0200
1.2 +++ b/imipweb/event.py Fri Oct 16 19:39:04 2015 +0200
1.3 @@ -528,7 +528,13 @@
1.4 page.th("")
1.5 page.td()
1.6
1.7 - remove_type = self.can_remove_recurrence(period) and "submit" or "checkbox"
1.8 + # Attendees can instantly remove recurrences and thus produce a
1.9 + # counter-proposal. Organisers may need to unschedule recurrences
1.10 + # instead.
1.11 +
1.12 + remove_type = self.can_change_object() and \
1.13 + (self.can_remove_recurrence(period) or not self.is_organiser()) and \
1.14 + "submit" or "checkbox"
1.15
1.16 self.control("recur-remove", remove_type, str(index),
1.17 str(index) in args.get("recur-remove", []),
1.18 @@ -1177,7 +1183,7 @@
1.19 except (IndexError, ValueError):
1.20 continue
1.21
1.22 - if self.can_remove_recurrence(recurrence):
1.23 + if self.can_remove_recurrence(recurrence) or not self.is_organiser():
1.24 del recurrences[i]
1.25 correction += 1
1.26 else: