'Verifies whether the requesting user can access another user\'s view of
the blocks in the course.'

@staticmethod
def _verify_other_user(requesting_user, requested_username, course_key):

    if (not permissions.can_access_others_blocks(requesting_user, course_key)):
        raise PermissionDenied("'{requesting_username}'    does    not    have    permission    to    access    view    for    '{requested_username}'.".format(requesting_username=requesting_user.username, requested_username=requested_username))
    try:
        return User.objects.get(username=requested_username)
    except User.DoesNotExist:
        raise Http404("Requested    user    '{requested_username}'    does    not    exist.".format(requested_username=requested_username))
