.
This commit is contained in:
@@ -89,6 +89,11 @@ def user_is_admin(user):
|
||||
|
||||
def question_list(request):
|
||||
questions = AnatomyQuestion.objects.all()
|
||||
|
||||
if not request.user.groups.filter(name="anatomy_checker").exists() :
|
||||
questions = questions.filter(open_access=False)
|
||||
#raise PermissionDenied()
|
||||
|
||||
return render(request, "anatomy/question_list.html", {"questions": questions})
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user