fix authorizeToEdit call

This commit is contained in:
Devin Howard 2016-09-25 20:14:45 +08:00
parent 43fafb8e6f
commit 11d13445fb

View file

@ -150,13 +150,14 @@ const JIT = {
if (self.vizData.length == 0) { if (self.vizData.length == 0) {
$('#instructions div').hide() $('#instructions div').hide()
if (Metamaps.Active.Map.authorizeToEdit()) { if (Metamaps.Active.Map.authorizeToEdit(Active.Mapper)) {
$('#instructions div.addTopic').show() $('#instructions div.addTopic').show()
} }
GlobalUI.showDiv('#instructions') GlobalUI.showDiv('#instructions')
Visualize.loadLater = true Visualize.loadLater = true
} else {
GlobalUI.hideDiv('#instructions')
} }
else GlobalUI.hideDiv('#instructions')
Visualize.render() Visualize.render()
}, // prepareVizData }, // prepareVizData