diff --git a/kernel/model/conf.go b/kernel/model/conf.go index 72bbe3bef..84f2ba1ff 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 (