From: Felix Dörre Date: Sat, 14 Nov 2015 06:14:08 +0000 (+0100) Subject: fix: a 0-point-assurance prexents account details editing X-Git-Url: https://code.wpia.club/?p=gigi.git;a=commitdiff_plain;h=9a06ff23757d695d29be05984d73f7f91d01de1b fix: a 0-point-assurance prexents account details editing --- diff --git a/src/org/cacert/gigi/dbObjects/User.java b/src/org/cacert/gigi/dbObjects/User.java index 2bc1e563..a7789866 100644 --- a/src/org/cacert/gigi/dbObjects/User.java +++ b/src/org/cacert/gigi/dbObjects/User.java @@ -312,8 +312,7 @@ public class User extends CertificateOwner { public void updateUserData() throws GigiApiException { synchronized (Notary.class) { - // FIXME: No assurance, not no points. - if (getAssurancePoints() != 0) { + if (getReceivedAssurances().length != 0) { throw new GigiApiException("No change after assurance allowed."); } rawUpdateUserData();