Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Jonah Kanner
gracedb
Commits
d85242a6
Commit
d85242a6
authored
Jul 24, 2018
by
Tanner Prestegard
Committed by
GraceDB
Jul 24, 2018
Browse files
Bugfix to file serving (datadir -> datadir())
parent
362b1af3
Changes
1
Hide whitespace changes
Inline
Side-by-side
gracedb/events/views.py
View file @
d85242a6
...
...
@@ -878,7 +878,7 @@ def file_download(request, event, filename):
msg
=
"You do not have permission to view this file."
return
HttpResponseForbidden
(
msg
)
file_path
=
os
.
path
.
join
(
event
.
datadir
,
filename
)
file_path
=
os
.
path
.
join
(
event
.
datadir
()
,
filename
)
return
check_and_serve_file
(
request
,
file_path
,
ResponseClass
=
HttpResponse
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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