func (b *backend) HasUserPaid(user *database.User) bool {
	// Return true when running unit tests
	if b.test {
		return true
	}

	// Return true if paywall is disabled
	if !b.paywallIsEnabled() {
		return true
	}

	return user.NewUserPaywallTx != ""
}
// HasUserPaid checks that a user has paid the paywall
HasUserPaid checks that a user has paid the paywall
// HasUserPaid checks that a user has paid the paywall
func (b *backend) HasUserPaid(user *database.User) bool {
	if b.test {
		return true
	}
	if !b.paywallIsEnabled() {
		return true
	}
	return user.NewUserPaywallTx != ""
}
func ( b * backend ) HasUserPaid ( user * database . User ) bool { if b . test { return true } if ! b . paywallIsEnabled ( ) { return true } return user . NewUserPaywallTx != " " }
HasUserPaid checks that a user has paid the paywall
HasUserPaid checks that a user has paid the paywall
// Return true when running unit tests // Return true if paywall is disabled