Minor fix.

This commit is contained in:
Paulo Gustavo Veiga 2012-11-14 20:53:59 -03:00
parent 07c8a1d8c7
commit 0c433352c5

View File

@ -159,10 +159,10 @@ public class MindmapController {
final LockManager lockManager = this.mindmapService.getLockManager();
if (lockManager.isLocked(mindmap) && !lockManager.isLockedBy(mindmap, collaborator)) {
readOnlyMode = true;
model.addAttribute("mindmapLocked",true);
model.addAttribute("mindmapLocked", true);
} else {
final LockInfo lock = lockManager.lock(mindmap, collaborator);
model.addAttribute("lockTimestamp", lock.getTimestamp());
model.addAttribute("lockTimestamp", mindmap.getLastModificationTime().getTimeInMillis());
model.addAttribute(LOCK_SESSION_ATTRIBUTE, lockManager.generateSession());
}
model.addAttribute("lockInfo", lockManager.getLockInfo(mindmap));