Fix permissions panel empty at first save
cf https://forum.openstreetmap.fr/t/apres-enregistrement-dune-carte-les-permissions-ne-sont-pas-presentes/15995
This commit is contained in:
parent
76f69d3172
commit
8b4842ff21
1 changed files with 3 additions and 3 deletions
|
@ -35,13 +35,13 @@ L.U.MapPermissions = L.Class.extend({
|
|||
isOwner: function () {
|
||||
return (
|
||||
this.map.options.user &&
|
||||
this.map.options.permissions.owner &&
|
||||
this.map.options.user.id == this.map.options.permissions.owner.id
|
||||
this.map.permissions.options.owner &&
|
||||
this.map.options.user.id == this.map.permissions.options.owner.id
|
||||
)
|
||||
},
|
||||
|
||||
isAnonymousMap: function () {
|
||||
return !this.map.options.permissions.owner
|
||||
return !this.map.permissions.options.owner
|
||||
},
|
||||
|
||||
getMap: function () {
|
||||
|
|
Loading…
Reference in a new issue