@property
    def nodes_authorized(self):
        """Get authorized, non-deleted nodes. Returns an empty list if the
        attached add-on does not include a node model.

        """
        try:
            schema = self.config.settings_models['node']
        except __HOLE__:
            return []
        return [
            node_addon.owner
            for node_addon in schema.find(Q('user_settings', 'eq', self))
            if node_addon.owner and not node_addon.owner.is_deleted
        ]
dataset/ETHPy150Open CenterForOpenScience/osf.io/website/addons/base/__init__.py/AddonUserSettingsBase.nodes_authorized