From 6cecd45a207f232b5ebb735ec98f441942b7767a Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 6 Oct 2011 13:46:37 +0800 Subject: [PATCH] Pman.js --- Pman.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Pman.js b/Pman.js index 8e9fa2bd..95f36c55 100644 --- a/Pman.js +++ b/Pman.js @@ -814,14 +814,15 @@ Pman = new Roo.Document( // global supplied by master.html appDisabled = typeof(appDisabled) == 'undefined' ? [] : appDisabled; - if (typeof(obj.moduleName) != 'undefined') { - if (appDisabled.indexOf(obj.moduleName) > -1) { + var modName = obj.modKey.split('-').pop(); // last part of modkey.. + if (typeof(modName) != 'undefined') { + if (appDisabled.indexOf(modName) > -1) { return; } // now let's see if the user has the module disabled. // eg. Pman.Tab.AdminProjectManager // matches permission Admin.ProjectManager - var np = obj.moduleName.split('.').pop(); + var np = modName.split('.').pop(); obj.moduleOwner = ''; Roo.each(this.appModules, function(nm) { if (np.substring(0,nm.length) == nm) { -- 2.39.2