Skip to content

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

:art: Database beta https://github.com/siyuan-note/siyuan/issues/9242

Daniel6c2009adf2c2
diff --git a/app/src/util/needSubscribe.ts b/app/src/util/needSubscribe.ts
index 290481292c..e801d0f7a7 100644
--- a/app/src/util/needSubscribe.ts
+++ b/app/src/util/needSubscribe.ts
@@ -30,5 +30,5 @@ export const needSubscribe = (tip = window.siyuan.languages._kernel[29]) => {
};
export const isPaidUser = () => {
- return 0 === window.siyuan.user.userSiYuanSubscriptionStatus || 1 === window.siyuan.user.userSiYuanOneTimePayStatus;
+ return window.siyuan.user && (0 === window.siyuan.user.userSiYuanSubscriptionStatus || 1 === window.siyuan.user.userSiYuanOneTimePayStatus);
}