Merge pull request #1200 from umap-project/fix-permissions-on-save

Fix permissions panel empty at first save
This commit is contained in:
Yohan Boniface 2023-07-11 22:35:37 +02:00 committed by GitHub
commit 04c0bf3316
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,13 +35,13 @@ L.U.MapPermissions = L.Class.extend({
isOwner: function () { isOwner: function () {
return ( return (
this.map.options.user && this.map.options.user &&
this.map.options.permissions.owner && this.map.permissions.options.owner &&
this.map.options.user.id == this.map.options.permissions.owner.id this.map.options.user.id == this.map.permissions.options.owner.id
) )
}, },
isAnonymousMap: function () { isAnonymousMap: function () {
return !this.map.options.permissions.owner return !this.map.permissions.options.owner
}, },
getMap: function () { getMap: function () {