mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 06:07:57 +01:00
Remove unused context variables.
This commit is contained in:
parent
d0a03ad2a3
commit
d217768b83
@ -83,7 +83,6 @@ public class MindmapController {
|
|||||||
if (!readOnlyMode) {
|
if (!readOnlyMode) {
|
||||||
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;
|
|
||||||
isLocked = true;
|
isLocked = true;
|
||||||
} else {
|
} else {
|
||||||
model.addAttribute("lockTimestamp", mindmap.getLastModificationTime().getTimeInMillis());
|
model.addAttribute("lockTimestamp", mindmap.getLastModificationTime().getTimeInMillis());
|
||||||
@ -97,7 +96,6 @@ public class MindmapController {
|
|||||||
// Configure default locale for the editor ...
|
// Configure default locale for the editor ...
|
||||||
model.addAttribute("locale", locale.toString().toLowerCase());
|
model.addAttribute("locale", locale.toString().toLowerCase());
|
||||||
model.addAttribute("principal", collaborator);
|
model.addAttribute("principal", collaborator);
|
||||||
model.addAttribute("readOnlyMode", readOnlyMode);
|
|
||||||
model.addAttribute("memoryPersistence", false);
|
model.addAttribute("memoryPersistence", false);
|
||||||
model.addAttribute("mindmapLocked", isLocked);
|
model.addAttribute("mindmapLocked", isLocked);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user