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() };