@davoodmehraban89 / Factor-easy / commits / 17aae3f
Fork 0

سامانه صدور فاکتور و حسابداری

fix: signal organization account context availability after module loads

davoodmehraban89 committed Oct 14, 2026 at 23:45 UTC 17aae3fb6b14c66ad3e561327245310a686c3e03
1 file changed +2
js/organization-rbac.js
+2
@@ -217,4 +217,6 @@ function ensureOrgAccessButton(){
217 }
218 const baseEnterAppOrg=enterApp;
219 enterApp=async function(authUser){const r=await baseEnterAppOrg(authUser);ensureOrgAccessButton();return r};
220 +// Signal only after the full organization module and its account wrapper exist.
221 +window.finoraMarkOrganizationContextReady?.();
222 })();
\ No newline at end of file