def has_add_permission(self, request, obj=None):
        """
        Implement a lookup for object level permissions. Basically the same as
        ModelAdmin.has_add_permission, but also passes the obj parameter in.
        """
        perm = self.object_add_permission
        if settings.FEINCMS_TREE_EDITOR_OBJECT_PERMISSIONS:
            r = request.user.has_perm(perm, obj)
        else:
            r = request.user.has_perm(perm)

        return r and super().has_add_permission(request)

        Implement a lookup for object level permissions. Basically the same as
        ModelAdmin.has_add_permission, but also passes the obj parameter in.
        
feincms/admin/tree_editor.py