Unverified Commit 2760c38a authored by Thom Wiggers's avatar Thom Wiggers 📐
Browse files

Allow everyone to edit events without organiser

Closes #373
parent 46250795
......@@ -24,7 +24,7 @@ from .models import Event, Registration, RegistrationInformationField
def admin_details(request, event_id):
event = get_object_or_404(Event, pk=event_id)
if not request.user.is_superuser:
if not request.user.is_superuser and event.organiser is not None:
committees = request.user.member.get_committees().filter(
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment