Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2026-02-22 11:33:11 +08:00
parent e17236b440
commit c7dc67e055
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 4 additions and 2 deletions

View file

@ -1008,8 +1008,6 @@ 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
}

View file

@ -250,10 +250,14 @@ func checkSync(boot, exit, byHand bool) bool {
switch Conf.Sync.Provider {
case conf.ProviderSiYuan:
if !IsSubscriber() {
Conf.Sync.Enabled = false
Conf.Save()
return false
}
case conf.ProviderWebDAV, conf.ProviderS3, conf.ProviderLocal:
if !IsPaidUser() {
Conf.Sync.Enabled = false
Conf.Save()
return false
}
}