Init empty permissions
Fix bug where we coud not edit permissions of a new saved map unless reloading the page.
This commit is contained in:
parent
3b22155013
commit
b7009e3ed0
1 changed files with 3 additions and 2 deletions
|
@ -45,7 +45,8 @@ L.Map.mergeOptions({
|
||||||
captionBar: false,
|
captionBar: false,
|
||||||
slideshow: {},
|
slideshow: {},
|
||||||
clickable: true,
|
clickable: true,
|
||||||
easing: true
|
easing: true,
|
||||||
|
permissions: {}
|
||||||
});
|
});
|
||||||
|
|
||||||
L.U.Map.include({
|
L.U.Map.include({
|
||||||
|
@ -196,7 +197,7 @@ L.U.Map.include({
|
||||||
|
|
||||||
this.help = new L.U.Help(this);
|
this.help = new L.U.Help(this);
|
||||||
this.slideshow = new L.U.Slideshow(this, this.options.slideshow);
|
this.slideshow = new L.U.Slideshow(this, this.options.slideshow);
|
||||||
this.permissions = new L.U.MapPermissions(this, this.options.permissions);
|
this.permissions = new L.U.MapPermissions(this);
|
||||||
this.initCaptionBar();
|
this.initCaptionBar();
|
||||||
if (this.options.allowEdit) {
|
if (this.options.allowEdit) {
|
||||||
this.editTools = new L.U.Editable(this);
|
this.editTools = new L.U.Editable(this);
|
||||||
|
|
Loading…
Reference in a new issue