fix(crm): resolve PathManager root for MoneyFlix standalone clone (BIT-24925) #1

Merged
spark merged 1 commits from fix/bit-24925-crm-admin-pathmanager into master 2026-06-10 18:56:47 +01:00
Owner

Summary

findRootPath() was falling back to /opt/bitreport in the MoneyFlix standalone clone because it did not recognise the crm/ layout (where composer.json + Modules/ live inside crm/ and storage/ is at the parent root).

Fix

Added a check in findRootPath(): when traversal finds a composer.json alongside a Modules/ directory, it now inspects the parent for storage/ and returns the correct root.

Tested

Smoke test on CT 241 pending merge.

Closes: BIT-24925 / BIT-24926

## Summary `findRootPath()` was falling back to `/opt/bitreport` in the MoneyFlix standalone clone because it did not recognise the `crm/` layout (where `composer.json` + `Modules/` live inside `crm/` and `storage/` is at the parent root). ## Fix Added a check in `findRootPath()`: when traversal finds a `composer.json` alongside a `Modules/` directory, it now inspects the parent for `storage/` and returns the correct root. ## Tested Smoke test on CT 241 pending merge. Closes: BIT-24925 / BIT-24926
spark added 1 commit 2026-06-10 18:56:41 +01:00
findRootPath() fell back to /opt/bitreport when composer.json lives
under crm/ with Modules/, breaking auth layout resolution and /login 500.

Co-authored-by: Cursor <[email protected]>
spark merged commit d7dc1e7f43 into master 2026-06-10 18:56:47 +01:00
Sign in to join this conversation.