[Yanel-commits] rev 33209 - public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/security/gwt/accesspolicyeditor/client

michi at wyona.com michi at wyona.com
Tue Mar 11 01:24:39 CET 2008


Author: michi
Date: 2008-03-11 01:24:38 +0100 (Tue, 11 Mar 2008)
New Revision: 33209

Modified:
   public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/security/gwt/accesspolicyeditor/client/PolicyListBoxWidget.java
Log:
update of checkboxes fixed

Modified: public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/security/gwt/accesspolicyeditor/client/PolicyListBoxWidget.java
===================================================================
--- public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/security/gwt/accesspolicyeditor/client/PolicyListBoxWidget.java	2008-03-11 00:16:59 UTC (rev 33208)
+++ public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/security/gwt/accesspolicyeditor/client/PolicyListBoxWidget.java	2008-03-11 00:24:38 UTC (rev 33209)
@@ -230,10 +230,10 @@
             boolean hasReadBeenChecked = false;
             boolean hasWriteBeenChecked = false;
             for (int j = 0; j < rights.length; j++) {
-                if (rights[j].getId().equals(READ_RIGHT)) {
+                if (rights[j].getId().equals(READ_RIGHT) && rights[j].getPermission()) {
                     readCB.setChecked(true);
                     hasReadBeenChecked = true;
-                } else if (rights[j].getId().equals(WRITE_RIGHT)) {
+                } else if (rights[j].getId().equals(WRITE_RIGHT) && rights[j].getPermission()) {
                     writeCB.setChecked(true);
                     hasWriteBeenChecked = true;
                 }



More information about the Yanel-commits mailing list