Org name, branches, ticket customers, and staff Members now come from DemoWorld so Queue continuity matches Care/Frontdesk across the suite. Also resolve organization by owner_ref when metadata.queue.organization_id is missing, and skip reseed-on-login for DemoWorld staff emails. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -8,6 +8,10 @@ use Illuminate\Support\Facades\Log;
|
||||
|
||||
/**
|
||||
* Reseed Queue demo tenants after a fresh SSO login.
|
||||
*
|
||||
* Only owner demo accounts trigger a full reseed. DemoWorld staff logins
|
||||
* (e.g. receptionist@ladill.com variants) share the owner tenant but must
|
||||
* never reseed mid-demo.
|
||||
*/
|
||||
class DemoLoginReseeder
|
||||
{
|
||||
@@ -18,6 +22,10 @@ class DemoLoginReseeder
|
||||
return;
|
||||
}
|
||||
|
||||
if (\App\Support\DemoWorld::isStaffDemoEmail($user->email)) {
|
||||
return;
|
||||
}
|
||||
|
||||
$plan = $this->planForEmail($user->email);
|
||||
if ($plan === null) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user