Pman.js
authorAlan Knowles <alan@akbkhome.com>
Sun, 1 Apr 2012 08:41:11 +0000 (16:41 +0800)
committerAlan Knowles <alan@akbkhome.com>
Sun, 1 Apr 2012 08:41:11 +0000 (16:41 +0800)
Pman.js

diff --git a/Pman.js b/Pman.js
index 2196608..b50420d 100644 (file)
--- a/Pman.js
+++ b/Pman.js
@@ -918,10 +918,10 @@ Pman = new Roo.Document(
            // honour DEPRICATED permname setings..
            // new code should use PART name, and matching permissions.
             if (this.permname && this.permname.length) {
-                if (Pman.hasPerm(this.permname, 'S')) {
-                   this.add(this.parent.layout, this.region);    
+                if (!Pman.hasPerm(this.permname, 'S')) {
+                    return;
                 }
-                return;
+                
             }
             this.add(this.parent.layout, this.region);
             this.el = this.layout;