]> WPIA git - gigi.git/blobdiff - src/org/cacert/gigi/util/Notary.java
Enforce Date-of-births to be day-only.
[gigi.git] / src / org / cacert / gigi / util / Notary.java
index c3a889ab4ac12a6ed5a3ce763a002c23df800083..24118fc3678f4f738818b0fbd7b95cdc738b62f3 100644 (file)
@@ -72,7 +72,7 @@ public class Notary {
      * @throws GigiApiException
      *             if the assurance fails (for various reasons)
      */
-    public synchronized static void assure(User assurer, User assuree, Name assureeName, Date dob, int awarded, String location, String date, AssuranceType type) throws GigiApiException {
+    public synchronized static void assure(User assurer, User assuree, Name assureeName, DayDate dob, int awarded, String location, String date, AssuranceType type) throws GigiApiException {
         may(assurer, assuree, AssuranceType.FACE_TO_FACE);
         GigiApiException gae = new GigiApiException();
         if ( !gae.isEmpty()) {
@@ -197,7 +197,7 @@ public class Notary {
     private static void assureNucleus(User assurer, User assuree, int awarded, String location, String date) throws GigiApiException {
         may(assurer, assuree, AssuranceType.NUCLEUS);
         // Do up to 35 points as f2f
-        int f2fPoints = Math.min(35, awarded);
+        int f2fPoints = Math.min(assurer.getMaxAssurePoints(), awarded);
         assureF2F(assurer, assuree, f2fPoints, location, date);
 
         awarded -= f2fPoints;