@property
    def user_is_owner(self):
        if self.user_settings is None or self.node_settings is None:
            return False

        user_accounts = self.user_settings.external_accounts
        return bool(
            self.node_settings.has_auth and
            self.node_settings.external_account in user_accounts
        )
dataset/ETHPy150Open CenterForOpenScience/osf.io/website/addons/base/serializer.py/OAuthAddonSerializer.user_is_owner/original