JAN ERP V3.8.1 — Business Admin Push Fix
This hotfix repairs native phone push subscriptions for Business Admin and other internal users without changing Investor access.
What changed- The PWA now re-binds the existing browser push endpoint to the currently logged-in ERP user before it displays Alerts On.
- Send Test re-binds first, then sends, eliminating stale Full Admin/old-role ownership on the same browser profile.
- The server resolves the effective role from the live users table at delivery time, so a user promoted to Business Admin receives the Business Admin operational audience immediately.
- Business Admin is explicitly allowed all operational push audiences, while Investor notifications remain blocked.
- Missing internal user IDs are recovered from the logged-in username/display name when possible.
- A new
push_my_status.php page shows the current login, active device count and lets the Business Admin re-link/test the device.
Install
- Take a quick File Manager backup.
- Upload this ZIP into
/home2/doctorlabs/public_html/jan.doctorlabs.in. - Extract and overwrite the included files.
- Sign out of the mobile PWA, sign back in as Business Admin, and open
https://jan.doctorlabs.in/push_my_status.php. - Tap Enable / Re-link Alerts, then Send Test.
No database upgrade is required.