@social-mail/social-mail-web-server 1.4.748 → 1.4.749

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": "@social-mail/social-mail-web-server",
3
- "version": "1.4.748",
3
+ "version": "1.4.749",
4
4
  "description": "## Phase 1",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -262,8 +262,8 @@ export default class AppFileEvents extends AuthenticatedEvents<AppFile> {
262
262
  if (entry.isModified("parentID")) {
263
263
  if (entity.parentID && entity.path) {
264
264
  const pf = await this.db.appFiles.where(entity, (p) => (x) => x.appFileID === p.appFileID).first();
265
- if (pf.path.startsWith(entity.path)) {
266
- throw new EntityAccessError(`Circular path detected`);
265
+ if (pf.path !== entity.path && pf.path.startsWith(entity.path)) {
266
+ throw new EntityAccessError(`Circular path detected ${pf.path} starts with ${entity.path}`);
267
267
  }
268
268
  }
269
269
  }