Fixes error caused by invalid Anonymous User passed to a view.
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
Loading
Please register or sign in to comment