sync
[Pman.Admin] / Pman.Tab.Admin.js
index 8346da2..0f286c6 100644 (file)
@@ -9,7 +9,7 @@ Pman.on('beforeload', function()
 {
     
     // only the system admin company can see this!!
-    if (Pman.Login.authUser.company_id_isOwner * 1 < 1) {
+    if (Pman.Login.authUser.company_id_comptype != 'OWNER') {
         return;
     }
     Pman.register({
@@ -84,7 +84,9 @@ Pman.Tab.Admin = {
                 }));
 
         this.tab.on('activate', function() {
-            
+            try {
+                this.layout.showPanel(0)
+            } catch(e) { }
             
             //_this.layout.getRegion('center').showPanel(0);