Event setup: Do not create additional teams for staff

This commit is contained in:
Raphael Michel
2020-04-21 09:33:32 +02:00
parent 82c84a0fdc
commit b260cca412

View File

@@ -202,11 +202,11 @@ class EventWizardBasicsForm(I18nModelForm):
return slug
@staticmethod
def has_control_rights(user, organizer):
def has_control_rights(user, organizer, request):
return user.teams.filter(
organizer=organizer, all_events=True, can_change_event_settings=True, can_change_items=True,
can_change_orders=True, can_change_vouchers=True
).exists()
).exists() or user.is_staff
class EventChoiceMixin: