saheba
2013-03-25 3eb83d71a5a1ed8385a606c7bdede066b1a00d72
src/com/gitblit/ConfigUserService.java
@@ -20,6 +20,7 @@
import java.text.MessageFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
@@ -286,7 +287,7 @@
    * @since 1.2.0
    */
   @Override
   public boolean updateUserModels(List<UserModel> models) {
   public boolean updateUserModels(Collection<UserModel> models) {
      try {
         read();
         for (UserModel model : models) {
@@ -409,6 +410,10 @@
         // Read realm file
         read();
         UserModel model = users.remove(username.toLowerCase());
         if (model == null) {
            // user does not exist
            return false;
         }
         // remove user from team
         for (TeamModel team : model.teams) {
            TeamModel t = teams.get(team.name);
@@ -562,7 +567,7 @@
    * @since 1.2.0
    */
   @Override
   public boolean updateTeamModels(List<TeamModel> models) {
   public boolean updateTeamModels(Collection<TeamModel> models) {
      try {
         read();
         for (TeamModel team : models) {
@@ -804,7 +809,6 @@
   /**
    * Writes the properties file.
    * 
    * @param properties
    * @throws IOException
    */
   private synchronized void write() throws IOException {