From 76a75be1eb61e88acb80649488631fb850dd696b Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Sun, 1 Apr 2012 14:40:40 +0800 Subject: [PATCH] Pman.js --- Pman.js | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/Pman.js b/Pman.js index 939c3178..8ed3dcfb 100644 --- a/Pman.js +++ b/Pman.js @@ -900,27 +900,23 @@ Pman = new Roo.Document( return; } - if (!mod.parent.layout) { + if (!this.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')) { - mod.module.add(mod.parent.layout, mod.region); - } + + // 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.module.add(this.parent.layout, this.region); + } } else { - mod.module.add(mod.parent.layout, mod.region); + this.module.add(this.parent.layout, this.region); } } - - - - + } -- 2.39.2