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
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 master2026-06-10 18:56:47 +01:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
findRootPath()was falling back to/opt/bitreportin the MoneyFlix standalone clone because it did not recognise thecrm/layout (wherecomposer.json+Modules/live insidecrm/andstorage/is at the parent root).Fix
Added a check in
findRootPath(): when traversal finds acomposer.jsonalongside aModules/directory, it now inspects the parent forstorage/and returns the correct root.Tested
Smoke test on CT 241 pending merge.
Closes: BIT-24925 / BIT-24926