mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-05 15:13:24 +01:00
Fix display lock message.
This commit is contained in:
parent
7b45b4b633
commit
6a5eb910b5
@ -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());
|
||||||
|
Loading…
Reference in New Issue
Block a user