Pman.js
authorAlan Knowles <alan@roojs.com>
Thu, 6 Oct 2011 05:47:07 +0000 (13:47 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 6 Oct 2011 05:47:07 +0000 (13:47 +0800)
Pman.js

diff --git a/Pman.js b/Pman.js
index 95f36c5..efffccc 100644 (file)
--- a/Pman.js
+++ b/Pman.js
@@ -823,14 +823,14 @@ Pman = new Roo.Document(
             // eg. Pman.Tab.AdminProjectManager
             // matches permission Admin.ProjectManager
             var np = modName.split('.').pop();
-            obj.moduleOwner = '';
+            modOwner  = '';
             Roo.each(this.appModules, function(nm) {
                 if (np.substring(0,nm.length) == nm) {
-                    obj.moduleOwner = nm;
+                    modOwner = nm;
                 }
             });
-            if (obj.moduleOwner.length) { 
-                var permname = obj.moduleOwner +'.' + np.substring(obj.moduleOwner.length);
+            if (modOwner .length) { 
+                var permname = modOwner +'.' + np.substring(modOwner.length);
                 // we now have permission...
                 // obj.moduleOwner '.' lname