mirror of
https://github.com/umap-project/umap.git
synced 2025-04-28 19:42:36 +02:00
fix: do not show "Attache to my account" button if no logged in user
This commit is contained in:
parent
445127254b
commit
eda1223516
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,7 @@ export class MapPermissions {
|
|||
const builder = new U.FormBuilder(this, fields)
|
||||
const form = builder.build()
|
||||
container.appendChild(form)
|
||||
if (this.isAnonymousMap() && this.map.options.user) {
|
||||
if (this.isAnonymousMap() && this.map.options.user?.id) {
|
||||
// We have a user, and this user has come through here, so they can edit the map, so let's allow to own the map.
|
||||
// Note: real check is made on the back office anyway.
|
||||
const advancedActions = DomUtil.createFieldset(
|
||||
|
|
Loading…
Reference in a new issue