smoke test the rest of the apps
This commit is contained in:
+4
-1
@@ -115,6 +115,8 @@ def normaliseScore(score):
|
||||
class AuthorOrCheckerRequiredMixin(object):
|
||||
def get_object(self, *args, **kwargs):
|
||||
obj = super().get_object(*args, **kwargs)
|
||||
if self.request.user.is_superuser:
|
||||
return obj
|
||||
if self.request.user.groups.filter(name="rapid_checker").exists():
|
||||
return obj
|
||||
if self.request.user not in obj.author.all():
|
||||
@@ -950,7 +952,8 @@ def question_json(request, pk):
|
||||
def question_viewer(request):
|
||||
# question = get_object_or_404(Rapid, pk=pk)
|
||||
|
||||
ids = request.GET.get("ids").split(",")
|
||||
ids_param = request.GET.get("ids")
|
||||
ids = ids_param.split(",") if ids_param else []
|
||||
|
||||
return render(
|
||||
request,
|
||||
|
||||
Reference in New Issue
Block a user