diff --git a/public/app-runtime.js b/public/app-runtime.js index 9d17313..386d02c 100644 --- a/public/app-runtime.js +++ b/public/app-runtime.js @@ -3334,7 +3334,7 @@ window.SUN_LEGACY_CATALOG_V175=[{"id":"1","name":"Фуршетный бокс function workspace(){ return cloud()?.getWorkspace?.() || null; } function session(){ return cloud()?.getSession?.() || null; } function client(){ return cloud()?.getClient?.() || null; } - function has(p){ const c=cloud(); return c?.hasPermission ? c.hasPermission(p) : false; } + function has(p){ try{if(localStorage.getItem('sunLocalOnlyModeV1')==='1')return true;}catch(_){} const c=cloud(); return c?.hasPermission ? c.hasPermission(p) : false; } function currentPermissions(){ return workspace()?.permissions || {}; } function normalizeLegacyLocalAuth(){