Fix private security (#2731)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov 2023-03-14 12:09:50 +06:00 committed by GitHub
parent 3748a1465b
commit 0db9d1f786
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -77,7 +77,7 @@ export class PrivateMiddleware extends BaseMiddleware implements Middleware {
if (account._id !== core.account.System) {
newQuery = {
...query,
modifiedBy: account
modifiedBy: account._id
}
}
}