From 57274d26ad0bcf0e578b4a14b6e2dee5ef629519 Mon Sep 17 00:00:00 2001 From: baozhoutao Date: Thu, 30 May 2024 16:35:10 +0800 Subject: [PATCH] =?UTF-8?q?fix=20bug=20=E6=B2=A1=E6=9C=89userSession=20?= =?UTF-8?q?=E6=97=B6=20,=E4=B8=8D=E9=9C=80=E8=A6=81=E6=89=A7=E8=A1=8C?= =?UTF-8?q?=E5=85=B1=E4=BA=AB=E8=A7=84=E5=88=99=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/objectql/src/types/shareRule.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/objectql/src/types/shareRule.ts b/packages/objectql/src/types/shareRule.ts index 44785c8ecc..666208c34f 100644 --- a/packages/objectql/src/types/shareRule.ts +++ b/packages/objectql/src/types/shareRule.ts @@ -2,7 +2,7 @@ * @Author: baozhoutao@steedos.com * @Date: 2023-08-30 15:26:07 * @LastEditors: baozhoutao@steedos.com - * @LastEditTime: 2024-05-16 15:56:16 + * @LastEditTime: 2024-05-30 16:32:50 * @Description: */ import { getSteedosSchema } from '../types' @@ -33,6 +33,9 @@ export class ShareRules { if (_.isEmpty(rules)) { return {}; } + if(_.isEmpty(userSession)){ + return {}; + } const rulesFilters = []; const allowEditRulesFilters = [] const globalData = { now: new Date() };