From 83f49ac20b28ae6991fd5a99b459a66b4fe029a6 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 24 Mar 2015 11:46:03 +0800 Subject: [PATCH] Pman.Dialog.PersonEditor.js --- Pman.Dialog.PersonEditor.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Pman.Dialog.PersonEditor.js b/Pman.Dialog.PersonEditor.js index 9f714b2c..9aa1827c 100644 --- a/Pman.Dialog.PersonEditor.js +++ b/Pman.Dialog.PersonEditor.js @@ -172,6 +172,11 @@ Pman.Dialog.PersonEditor.prototype = { this.loadItemTypes(); Roo.each(this.itemList, function(il) { if (typeof(il) != 'object') { + // no permission for Core offices.. - can not show department... + if (il == 'office_id_name' && !Pman.hasPerm('Core.Offices','S')) { + return true;; + } + _this.form.addxtype(_this.itemTypes[il]); return true; } -- 2.39.2