Fix display lock message.

This commit is contained in:
Paulo Gustavo Veiga 2014-02-17 09:05:54 -03:00
parent 7b45b4b633
commit 6a5eb910b5

View File

@ -157,6 +157,7 @@ public class MindmapController {
final LockManager lockManager = this.mindmapService.getLockManager(); final LockManager lockManager = this.mindmapService.getLockManager();
if (lockManager.isLocked(mindmap) && !lockManager.isLockedBy(mindmap, collaborator)) { if (lockManager.isLocked(mindmap) && !lockManager.isLockedBy(mindmap, collaborator)) {
readOnlyMode = true; readOnlyMode = true;
isLocked = true;
} else { } else {
model.addAttribute("lockTimestamp", mindmap.getLastModificationTime().getTimeInMillis()); model.addAttribute("lockTimestamp", mindmap.getLastModificationTime().getTimeInMillis());
model.addAttribute(LOCK_SESSION_ATTRIBUTE, lockManager.generateSession()); model.addAttribute(LOCK_SESSION_ATTRIBUTE, lockManager.generateSession());