From: Felix Dörre Date: Tue, 26 Jul 2016 16:17:47 +0000 (+0200) Subject: fix: prevent updating DoB after 0-points-verification X-Git-Url: https://code.wpia.club/?p=gigi.git;a=commitdiff_plain;h=ecf2ecef1ef7e1674135004814d9428da1d30eca fix: prevent updating DoB after 0-points-verification this code then complies with User.setDoB which already contains exactly this restriction Change-Id: I8c93bf14b3e34604ffeb1b80810a2a98a0a191e6 --- diff --git a/src/org/cacert/gigi/pages/account/MyDetailsForm.java b/src/org/cacert/gigi/pages/account/MyDetailsForm.java index 2d1f7ff3..fd329ffd 100644 --- a/src/org/cacert/gigi/pages/account/MyDetailsForm.java +++ b/src/org/cacert/gigi/pages/account/MyDetailsForm.java @@ -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 {