Remove username from the mindmap info.

This commit is contained in:
Paulo Gustavo Veiga
2012-07-15 02:04:53 -03:00
parent 9257638da2
commit 1ac80626b4
7 changed files with 6 additions and 12 deletions

View File

@@ -39,7 +39,7 @@ public class MindmapManagerImpl
final Collaborator collaborator;
final List<Collaborator> collaborators = getHibernateTemplate().find("from com.wisemapping.model.Collaborator collaborator where email=?", email);
if (collaborators != null && !collaborators.isEmpty()) {
assert collaborators.size() == 1 : "More than one user with the same username!";
assert collaborators.size() == 1 : "More than one user with the same email!";
collaborator = collaborators.get(0);
} else {
collaborator = null;