From 3ad7a345cc07262d5c120e883c20ed625f2b5be8 Mon Sep 17 00:00:00 2001 From: Claudio Barril Date: Sat, 11 Apr 2015 16:09:29 -0300 Subject: [PATCH] take away collaboration from collabsToRemove before role edition --- .../java/com/wisemapping/rest/MindmapController.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/wise-webapp/src/main/java/com/wisemapping/rest/MindmapController.java b/wise-webapp/src/main/java/com/wisemapping/rest/MindmapController.java index 4c9bbeed..778e31a6 100644 --- a/wise-webapp/src/main/java/com/wisemapping/rest/MindmapController.java +++ b/wise-webapp/src/main/java/com/wisemapping/rest/MindmapController.java @@ -412,17 +412,17 @@ public class MindmapController extends BaseController { throw new IllegalArgumentException(roleStr + " is not a valid role"); } + // Remove from the list of pendings to remove ... + if (collaboration != null) { + collabsToRemove.remove(collaboration); + } + // Is owner ? final CollaborationRole role = CollaborationRole.valueOf(roleStr.toUpperCase()); if (role != CollaborationRole.OWNER) { mindmapService.addCollaboration(mindMap, restCollab.getEmail(), role, restCollabs.getMessage()); } - // Remove from the list of pendings to remove ... - if (collaboration != null) { - collabsToRemove.remove(collaboration); - } - } // Remove all collaborations that no applies anymore ..