Add author validation in collection_take_start and implement is_author method in AuthorMixin
This commit is contained in:
@@ -2125,6 +2125,9 @@ def collection_take_start(request, pk, cid=None, passcode=None):
|
||||
valid_user = False
|
||||
#valid_user = collection.check_logged_in_user(request)
|
||||
|
||||
if not valid_user and collection.is_author(request.user):
|
||||
valid_user = True
|
||||
|
||||
|
||||
|
||||
cid_exam = None
|
||||
|
||||
Reference in New Issue
Block a user