mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-03 03:07:01 +00:00
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user