def can_access(self, obj):
        if self.is_superuser:
            return True

        ct = ContentType.objects.get_for_model(obj)
        try:
            ooentry = self.objectaccess_set.get(
                content_type=ct, object_id=obj.id)
        except ObjectAccess.DoesNotExist:
            pass
        else:
            return True
        if ct.model == "user":
            return False

        ct = ContentType.objects.get_for_model(self)
        qs = self.objectaccess_set.filter(content_type=ct)
        for ooentry in qs.all():
            if ooentry.content_object.is_owner(obj):
                return True
        return False
Returns information on a particular reply.
dataset/ETHPy150Open tonioo/modoboa/modoboa/core/models.py/User.can_access--crossover with--dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/webapi/resources/review_reply.py/ReviewReplyResource.get