]> WPIA git - gigi.git/commitdiff
fix: prevent updating DoB after 0-points-verification
authorFelix Dörre <felix@dogcraft.de>
Tue, 26 Jul 2016 16:17:47 +0000 (18:17 +0200)
committerFelix Dörre <felix@dogcraft.de>
Tue, 26 Jul 2016 18:36:17 +0000 (20:36 +0200)
this code then complies with User.setDoB which already contains
exactly this restriction

Change-Id: I8c93bf14b3e34604ffeb1b80810a2a98a0a191e6

src/org/cacert/gigi/pages/account/MyDetailsForm.java

index 2d1f7ff3c9b80ece5271f3729b8c26503d19c18a..fd329ffdecaeb191f23b1fd78deb5f13c6372cd0 100644 (file)
@@ -119,7 +119,7 @@ public class MyDetailsForm extends Form {
         });
         vars.put("name", ni);
         names.output(out, l, vars);
-        if (target.getAssurancePoints() == 0) {
+        if (target.getReceivedAssurances().length == 0) {
             vars.put("DoB", ds);
             templ.output(out, l, vars);
         } else {