SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 4663fdf6 authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

typo in docstring

parent a701c09b
No related branches found
No related tags found
No related merge requests found
...@@ -130,10 +130,11 @@ def index(request): ...@@ -130,10 +130,11 @@ def index(request):
def protected_serve(request, path, show_indexes=False): def protected_serve(request, path, show_indexes=False):
"""Serve media files from outside the public MEDIA_ROOT folder. """
Serve media files from outside the public MEDIA_ROOT folder.
Serve files that are saved outside the default MEDIA_ROOT folder for superusers only! Serve files that are saved outside the default MEDIA_ROOT folder for superusers only!
This will be usefull eg. in the admin pages. This will be useful eg. in the admin pages.
""" """
if not request.user.is_authenticated or not request.user.is_superuser: if not request.user.is_authenticated or not request.user.is_superuser:
# Only superusers may get to see secure files without an explicit serve method! # Only superusers may get to see secure files without an explicit serve method!
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment