Merge branch 'virusdefender-dev' into debug

* virusdefender-dev:
  fix typo
This commit is contained in:
virusdefender 2015-09-23 21:35:08 +08:00
commit 948f940043

View File

@ -231,7 +231,7 @@ class SubmissionShareAPIView(APIView):
result = _get_submission(submission_id, request.user)
except Submission.DoesNotExist:
return error_response(u"提交不存在")
if not request["can_share"]:
if not result["can_share"]:
return error_page(request, u"提交不存在")
submission = result["submission"]
submission.shared = not submission.shared