This patch would fix the case when an anonymous object is
getting passed to view causing "TypeError: int() argument must
be a string or a number, not 'AnonymousUser'" exception. Applying a
permission class would force user to be an authenticated
user otherwise would get a 403 response.
LEARNER-4162