From 6a5eb910b52136bb414e35725fb75e411490c6b5 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Mon, 17 Feb 2014 09:05:54 -0300 Subject: [PATCH] Fix display lock message. --- .../src/main/java/com/wisemapping/webmvc/MindmapController.java | 1 + 1 file changed, 1 insertion(+) diff --git a/wise-webapp/src/main/java/com/wisemapping/webmvc/MindmapController.java b/wise-webapp/src/main/java/com/wisemapping/webmvc/MindmapController.java index 94264b8a..76118ae9 100644 --- a/wise-webapp/src/main/java/com/wisemapping/webmvc/MindmapController.java +++ b/wise-webapp/src/main/java/com/wisemapping/webmvc/MindmapController.java @@ -157,6 +157,7 @@ public class MindmapController { final LockManager lockManager = this.mindmapService.getLockManager(); if (lockManager.isLocked(mindmap) && !lockManager.isLockedBy(mindmap, collaborator)) { readOnlyMode = true; + isLocked = true; } else { model.addAttribute("lockTimestamp", mindmap.getLastModificationTime().getTimeInMillis()); model.addAttribute(LOCK_SESSION_ATTRIBUTE, lockManager.generateSession());