Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
MOOC packages by hacklab
django-courses-legacy
Commits
16dc4315
Commit
16dc4315
authored
Apr 26, 2019
by
Bruno Martin
Browse files
fix is_anonymous
parent
dec4008c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
courses_legacy/templatetags/get_current_class.py
courses_legacy/templatetags/get_current_class.py
+1
-1
No files found.
courses_legacy/templatetags/get_current_class.py
View file @
16dc4315
...
...
@@ -9,7 +9,7 @@ register = template.Library()
def
get_current_class
(
context
,
course
):
current_user
=
context
.
get
(
'user'
)
if
current_user
.
is_anonymous
()
:
if
current_user
.
is_anonymous
:
return
None
current_class
=
None
...
...
Write
Preview
Markdown
is supported
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