Pman.js
authorAlan Knowles <alan@roojs.com>
Tue, 5 Jun 2012 03:29:53 +0000 (11:29 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 5 Jun 2012 03:29:53 +0000 (11:29 +0800)
Pman.js

diff --git a/Pman.js b/Pman.js
index 39e6285..6875334 100644 (file)
--- a/Pman.js
+++ b/Pman.js
@@ -812,7 +812,21 @@ Pman = new Roo.Document(
         // previously we did not a good naming policy for module and parts
         // most things that are called module here, really are 'parts'
         // new versions should have 'part' as [ module : part ]
-        
+         if (typeof(obj.part) != 'undefined')  {
+           
+            var permname = obj.part.join('.');
+                // we now have permission...
+                // obj.moduleOwner '.' lname
+           
+           
+            if (appDisabled.indexOf(permname) > -1)  {
+                Roo.log(permname + " is Disabled for this site");
+                obj.disabled = true;
+                return;
+            }
+            
+            
+        }