getUserIdsByActions中的查询条件修正
This commit is contained in:
parent
6f3e01bffa
commit
aae5c94403
|
|
@ -2076,7 +2076,16 @@ function getUserIdsByActions(params, context) {
|
|||
destEntity: entity,
|
||||
relation: {
|
||||
entity: entity,
|
||||
entityId: entityId,
|
||||
$or: [
|
||||
{
|
||||
entityId: entityId,
|
||||
},
|
||||
{
|
||||
entityId: {
|
||||
$exists: false,
|
||||
},
|
||||
}
|
||||
]
|
||||
},
|
||||
};
|
||||
if (overlap) {
|
||||
|
|
|
|||
|
|
@ -2511,7 +2511,16 @@ export class RelationAuth<ED extends EntityDict & BaseEntityDict>{
|
|||
destEntity: entity as string,
|
||||
relation: {
|
||||
entity: entity as string,
|
||||
entityId,
|
||||
$or: [
|
||||
{
|
||||
entityId,
|
||||
},
|
||||
{
|
||||
entityId: {
|
||||
$exists: false,
|
||||
},
|
||||
}
|
||||
]
|
||||
},
|
||||
};
|
||||
if (overlap) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue