Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: S3/WebDAV data sync and backup are available for a fee https://github.com/siyuan-note/siyuan/issues/8780

Daniel876e95ef277d
diff --git a/kernel/model/conf.go b/kernel/model/conf.go
index 72bbe3bef9..84f2ba1ffc 100644
--- a/kernel/model/conf.go
+++ b/kernel/model/conf.go
@@ -780,12 +780,17 @@ func IsSubscriber() bool {
}
func IsPaidUser() bool {
+ // S3/WebDAV data sync and backup are available for a fee https://github.com/siyuan-note/siyuan/issues/8780
+
if IsSubscriber() {
return true
}
- return nil != Conf.GetUser() // Sign in to use S3/WebDAV data sync https://github.com/siyuan-note/siyuan/issues/8779
- // TODO S3/WebDAV data sync and backup are available for a fee https://github.com/siyuan-note/siyuan/issues/8780
- // return nil != Conf.User && 1 == Conf.User.UserSiYuanOneTimePayStatus
+
+ u := Conf.GetUser()
+ if nil == u {
+ return false
+ }
+ return 1 == u.UserSiYuanOneTimePayStatus
}
const (