Pman.Tab.AdminLogEvents.bjs
authorEdward <edward@roojs.com>
Thu, 2 Apr 2015 07:48:01 +0000 (15:48 +0800)
committerEdward <edward@roojs.com>
Thu, 2 Apr 2015 07:48:01 +0000 (15:48 +0800)
Pman.Tab.AdminLogEvents.js

Pman.Tab.AdminLogEvents.bjs
Pman.Tab.AdminLogEvents.js

index cb5f4a1..65cc289 100644 (file)
             },
             {
              "listeners" : {
-              "|render" : "function (_self)\n{\n    _this.affectSel = _self;\n  \n    if(Pman.hasPerm('Admin.Logs_Affects', 'S')){\n        this.hide();\n    }\n}",
+              "|render" : "function (_self)\n{\n    _this.affectSel = _self;\n  \n    if(!Pman.hasPerm('Admin.Logs_Affects', 'S')){\n        this.hide();\n    }\n}",
               "|select" : "function (combo, record, index)\n{\n  _this.grid.footer.onClick('first');\n}"
              },
              "listWidth" : 300,
index e307fca..0ed7e00 100644 (file)
@@ -1187,7 +1187,7 @@ Pman.Tab.AdminLogEvents = new Roo.XComponent({
             {
                 _this.affectSel = _self;
               
-                if(Pman.hasPerm('Admin.Logs_Affects', 'S')){
+                if(!Pman.hasPerm('Admin.Logs_Affects', 'S')){
                     this.hide();
                 }
             },