-
Notifications
You must be signed in to change notification settings - Fork 390
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix bug 没有userSession 时 ,不需要执行共享规则代码
- Loading branch information
1 parent
d817157
commit 57274d2
Showing
1 changed file
with
4 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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' | ||
|
@@ -33,6 +33,9 @@ export class ShareRules { | |
if (_.isEmpty(rules)) { | ||
return {}; | ||
} | ||
if(_.isEmpty(userSession)){ | ||
return {}; | ||
} | ||
const rulesFilters = []; | ||
const allowEditRulesFilters = [] | ||
const globalData = { now: new Date() }; | ||
|