Skip to content

Map (created with context) crashes if the export plugin is set up to be hidden to certain groups and the user is not logged in #10262

@mahmoudadel54

Description

@mahmoudadel54

Description

If a non-logged in user accedes MapStore as a guest, and opens a Map resource created with a context and this context has some settings to hide the export functionality for users that are not admin then the map crashes, on the console the error is the following

How to reproduce

  • Create a context
  • Add export map plugin and add inside cfg: "disablePluginIf": "{state('userrole') != 'ADMIN'}"
  • Save the context
  • logout and try to open this context

Expected Result
The app should work as normal without crash

Current Result
The app crashes

  • Not browser related
Browser info (use this site: https://www.whatsmybrowser.org/ for non expert users)
Browser Affected Version
Internet Explorer
Edge
Chrome
Firefox
Safari

Other useful information

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions