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
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