fix authorizeToEdit call
This commit is contained in:
parent
43fafb8e6f
commit
11d13445fb
1 changed files with 3 additions and 2 deletions
|
@ -150,13 +150,14 @@ const JIT = {
|
|||
|
||||
if (self.vizData.length == 0) {
|
||||
$('#instructions div').hide()
|
||||
if (Metamaps.Active.Map.authorizeToEdit()) {
|
||||
if (Metamaps.Active.Map.authorizeToEdit(Active.Mapper)) {
|
||||
$('#instructions div.addTopic').show()
|
||||
}
|
||||
GlobalUI.showDiv('#instructions')
|
||||
Visualize.loadLater = true
|
||||
} else {
|
||||
GlobalUI.hideDiv('#instructions')
|
||||
}
|
||||
else GlobalUI.hideDiv('#instructions')
|
||||
|
||||
Visualize.render()
|
||||
}, // prepareVizData
|
||||
|
|
Loading…
Reference in a new issue