not-node 5.1.17 → 5.1.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "not-node",
3
- "version": "5.1.17",
3
+ "version": "5.1.18",
4
4
  "description": "node complimentary part for client side notFramework.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -422,7 +422,7 @@ module.exports = ({
422
422
  if (!itm) {
423
423
  throw new DBExceptionDocumentIsNotFound();
424
424
  }
425
- if (shouldOwn && !isOwner(itm, activeUser)) {
425
+ if (shouldOwn && !isOwner(itm, activeUser._id)) {
426
426
  throw new DBExceptionDocumentIsNotOwnerByActiveUser({
427
427
  params: {
428
428
  targetId,