Pman.js
authorAlan Knowles <alan@akbkhome.com>
Sun, 1 Apr 2012 06:38:38 +0000 (14:38 +0800)
committerAlan Knowles <alan@akbkhome.com>
Sun, 1 Apr 2012 06:38:38 +0000 (14:38 +0800)
Pman.js

diff --git a/Pman.js b/Pman.js
index ea91b06..939c317 100644 (file)
--- a/Pman.js
+++ b/Pman.js
@@ -900,7 +900,14 @@ Pman = new Roo.Document(
                 return;
             }
             
-            if (!mod.parent.layout)) || this.module.disabled) {
+            if (!mod.parent.layout) {
+                Roo.log("Module parent does not have property layout.")
+                Roo.log(this);
+                return;
+            }
+            
+                
+                || this.module.disabled) {
                 // honour permname setings..
                 if (mod.permname && mod.permname.length) {
                     if (Pman.hasPerm(mod.permname, 'S')) {