mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-22 21:50:34 +03:00
Fix private security (#2731)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
3748a1465b
commit
0db9d1f786
@ -77,7 +77,7 @@ export class PrivateMiddleware extends BaseMiddleware implements Middleware {
|
||||
if (account._id !== core.account.System) {
|
||||
newQuery = {
|
||||
...query,
|
||||
modifiedBy: account
|
||||
modifiedBy: account._id
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user