From 42564b27598d3346d5e09ccecf147fc3f903d902 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Sun, 18 Nov 2012 13:25:57 -0300 Subject: [PATCH] Fix stared issue. --- .../java/com/wisemapping/service/MindmapServiceImpl.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wise-webapp/src/main/java/com/wisemapping/service/MindmapServiceImpl.java b/wise-webapp/src/main/java/com/wisemapping/service/MindmapServiceImpl.java index d8e53a40..1c69040f 100755 --- a/wise-webapp/src/main/java/com/wisemapping/service/MindmapServiceImpl.java +++ b/wise-webapp/src/main/java/com/wisemapping/service/MindmapServiceImpl.java @@ -28,7 +28,9 @@ import org.jetbrains.annotations.Nullable; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; -import java.util.*; +import java.util.Calendar; +import java.util.List; +import java.util.Set; public class MindmapServiceImpl @@ -265,7 +267,7 @@ public class MindmapServiceImpl @Override public void updateCollaboration(@NotNull Collaborator collaborator, @NotNull Collaboration collaboration) throws WiseMappingException { - if (collaborator.identityEquality(collaboration.getCollaborator())) { + if (!collaborator.identityEquality(collaboration.getCollaborator())) { throw new WiseMappingException("No enough permissions for this operation."); } mindmapManager.updateCollaboration(collaboration);