]> WPIA git - gigi.git/blobdiff - src/org/cacert/gigi/pages/admin/support/SupportUserDetailsForm.java
upd: tighten synchronizeation on User Objects while assuring
[gigi.git] / src / org / cacert / gigi / pages / admin / support / SupportUserDetailsForm.java
index e1c94c6b84577b92eaa9bad5edde0fb274a64a8c..74fb02bb706f76a5fded7b5bd89a0f3b11e638a6 100644 (file)
@@ -105,8 +105,10 @@ public class SupportUserDetailsForm extends Form {
             throw new GigiApiException("Invalid date of birth!");
         }
         Name newName = new Name(fname, lname, mname, suffix);
-        if (user.setDob(dobSelector.getDate()) | user.setName(newName)) {
-            user.submitSupportAction();
+        synchronized (user.getTargetUser()) {
+            if (user.setDob(dobSelector.getDate()) | user.setName(newName)) {
+                user.submitSupportAction();
+            }
         }
         return true;
     }