projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce71029
)
Pman.Tab.PersonList.js
author
Alan Knowles
<alan@akbkhome.com>
Thu, 16 Dec 2010 03:08:56 +0000
(11:08 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Thu, 16 Dec 2010 03:08:56 +0000
(11:08 +0800)
Pman.Tab.PersonList.js
patch
|
blob
|
history
diff --git
a/Pman.Tab.PersonList.js
b/Pman.Tab.PersonList.js
index
7e0dc77
..
b3e2e20
100644
(file)
--- a/
Pman.Tab.PersonList.js
+++ b/
Pman.Tab.PersonList.js
@@
-438,7
+438,7
@@
Pman.Tab.PersonList.prototype = {
{
text: "Delete",
cls: 'x-btn-text-icon',
- hidden : !Pman.hasPerm(
'Core.Staff'
, 'D'),
+ hidden : !Pman.hasPerm(
_this.permName
, 'D'),
icon: rootURL + '/Pman/templates/images/trash.gif',
handler : function(){
Pman.genericDelete(_this, 'Person');
@@
-482,7
+482,7
@@
Pman.Tab.PersonList.prototype = {
text: "Switch to Selected User",
- hidden :
!Pman.hasPerm('Core.Staff', 'E'),
+ hidden :
_this.permName != 'Core.Staff' || !Pman.hasPerm('Core.Staff', 'E'),
listeners : {
click : function () {
var s = grid.getSelectionModel().getSelections();