Updating User.is_authenticated and User.is_anonymous as properties
This commit is contained in:
Awais Qureshi
2019-12-23 17:51:27 +05:00
parent 91bb648d11
commit 5f6b2db31b
5 changed files with 6 additions and 6 deletions

View File

@@ -165,7 +165,7 @@ class XBlockRuntime(RuntimeShim, Runtime):
"""
Submit a grade for the block.
"""
if not self.user.is_anonymous():
if not self.user.is_anonymous:
grades_signals.SCORE_PUBLISHED.send(
sender=None,
block=block,