@davoodmehraban89 / Factor-easy / commits / 7b0e1ac
Fork 0

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

Load organization RBAC extensions before authentication

davoodmehraban89 committed Sep 30, 2026 at 06:52 UTC 7b0e1acb8c02f30ad3fe69477c0d3aa9b978593f
1 file changed +1 -1
js/bootstrap.js
+1 -1
@@ -1,2 +1,2 @@
1 function finoraLoadScript(src){return new Promise((resolve,reject)=>{const s=document.createElement('script');s.src=src;s.onload=resolve;s.onerror=()=>reject(new Error('Failed to load '+src));document.head.appendChild(s)})}
2 -window.addEventListener('DOMContentLoaded',async()=>{try{await finoraLoadScript('js/platform-modules.js?v=20260930-platform-v2');await finoraLoadScript('js/office-automation.js?v=20260930-office-v1')}catch(e){console.error('Finora platform extension load failed',e)}if(!currentUser)initAuthSystem();});
2 +window.addEventListener('DOMContentLoaded',async()=>{try{await finoraLoadScript('js/organization-rbac.js?v=20260930-slice-b-v1');await finoraLoadScript('js/platform-modules.js?v=20260930-platform-v2');await finoraLoadScript('js/office-automation.js?v=20260930-office-v1');await finoraLoadScript('js/office-rbac.js?v=20260930-slice-b-v1')}catch(e){console.error('Finora platform extension load failed',e)}if(!currentUser)initAuthSystem();});