From 876e95ef277dab6551414f7a4dd5892ea41e1139 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Mon, 1 Jan 2024 16:34:58 +0800 Subject: [PATCH] :art: S3/WebDAV data sync and backup are available for a fee https://github.com/siyuan-note/siyuan/issues/8780 --- kernel/model/conf.go | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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 (