From 8b4842ff212541278957d74f86e886fb5c4d082f Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Tue, 11 Jul 2023 08:33:16 +0200 Subject: [PATCH] Fix permissions panel empty at first save cf https://forum.openstreetmap.fr/t/apres-enregistrement-dune-carte-les-permissions-ne-sont-pas-presentes/15995 --- umap/static/umap/js/umap.permissions.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/umap/static/umap/js/umap.permissions.js b/umap/static/umap/js/umap.permissions.js index 0da21b78..612faea4 100644 --- a/umap/static/umap/js/umap.permissions.js +++ b/umap/static/umap/js/umap.permissions.js @@ -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 () {