Enhance logging and error handling in collection access methods and WSGI configuration
This commit is contained in:
+4
-1
@@ -1256,6 +1256,7 @@ class Series(SeriesBase):
|
||||
|
||||
|
||||
class CaseCollection(ExamOrCollectionGenericBase):
|
||||
|
||||
app_name = "atlas"
|
||||
|
||||
cases = models.ManyToManyField(Case, through="CaseDetail")
|
||||
@@ -1518,7 +1519,9 @@ class CaseCollection(ExamOrCollectionGenericBase):
|
||||
Extend base check_user_can_take to also require completion of any
|
||||
prerequisite collections.
|
||||
"""
|
||||
# Perform the normal access checks first
|
||||
logger.error("Checking if user can take collection with prerequisites")
|
||||
logger.error(f"CID: {cid}, user: {user}, active_only: {active_only}")
|
||||
#` Perform the normal access checks first
|
||||
super().check_user_can_take(cid, passcode, user=user, active_only=active_only)
|
||||
|
||||
# If there are prerequisites, the user (or CID) must have completed them
|
||||
|
||||
Reference in New Issue
Block a user