Make sure to test this branch of code both in Studio (when viewing the asset page or hitting the URL for a particular asset) and in LMS. In Studio, I'm getting redirected to login every time.

Mock going through this code by either commenting out 47 or always having it return True.