Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
thalia
concrexit
Commits
2760c38a
Unverified
Commit
2760c38a
authored
Mar 31, 2017
by
Thom Wiggers
📐
Browse files
Allow everyone to edit events without organiser
Closes
#373
parent
46250795
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/events/views.py
View file @
2760c38a
...
...
@@ -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
(
pk
=
event
.
organiser
.
pk
).
count
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment