fix(app): re-check the sales-expert flag on every dashboard visit
The "سفارش مشتریان" / "مشتریان من" entries are shown from session.isSalesExpert, which was fetched from /expert/whoami only once, at sign-in. A slow or failed request (silently swallowed) left the flag false until the next login, so an expert saw a customer-only menu. The dashboard now asks again on mount and on every re-activation, and keeps the current value when the request fails. Rebuilds user-app and user-app-v2 dist. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
d8b6d36c1b
commit
0b973f9e46
Vendored
+4
-4
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"app": "user-app",
|
||||
"build": 203,
|
||||
"version": "1.203",
|
||||
"commit": "6592e88",
|
||||
"builtAt": "2026-10-25T19:15:51.202Z",
|
||||
"build": 213,
|
||||
"version": "1.213",
|
||||
"commit": "d8b6d36",
|
||||
"builtAt": "2026-10-26T06:51:33.091Z",
|
||||
"history": [
|
||||
{
|
||||
"build": 183,
|
||||
|
||||
Reference in New Issue
Block a user