projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
c340019
)
Pman.Dialog.PersonEditor.js
author
Alan Knowles
<alan@roojs.com>
Tue, 24 Mar 2015 03:46:03 +0000
(11:46 +0800)
committer
Alan Knowles
<alan@roojs.com>
Tue, 24 Mar 2015 03:46:03 +0000
(11:46 +0800)
Pman.Dialog.PersonEditor.js
patch
|
blob
|
history
diff --git
a/Pman.Dialog.PersonEditor.js
b/Pman.Dialog.PersonEditor.js
index
9f714b2
..
9aa1827
100644
(file)
--- 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;
}