'Encapsulates lms specific functionality, as `has_permission` is not
importable outside of lms context, namely in tests.
:param user:
:param str permission: Permission
:rtype: bool'

def has_permission(self, permission):

    from django_comment_client.permissions import has_permission
    return has_permission(self.django_user, permission, self.course_key)
