Skip to content

Commit

Permalink
fix bug 没有userSession 时 ,不需要执行共享规则代码
Browse files Browse the repository at this point in the history
  • Loading branch information
baozhoutao committed May 30, 2024
1 parent d817157 commit 57274d2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/objectql/src/types/shareRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @Author: [email protected]
* @Date: 2023-08-30 15:26:07
* @LastEditors: [email protected]
* @LastEditTime: 2024-05-16 15:56:16
* @LastEditTime: 2024-05-30 16:32:50
* @Description:
*/
import { getSteedosSchema } from '../types'
Expand Down Expand Up @@ -33,6 +33,9 @@ export class ShareRules {
if (_.isEmpty(rules)) {
return {};
}
if(_.isEmpty(userSession)){
return {};
}
const rulesFilters = [];
const allowEditRulesFilters = []
const globalData = { now: new Date() };
Expand Down

0 comments on commit 57274d2

Please sign in to comment.