planetlabs / qgis-planet-plugin

Browse, filter, preview and download Planet Inc imagery in QGIS.
https://developers.planet.com/docs/integrations/qgis/
GNU General Public License v2.0
45 stars 12 forks source link

Dev basemaps fix #92

Closed vermeulendivan closed 1 year ago

vermeulendivan commented 1 year ago

A user, whom should have access to basemaps, would sometimes not have basemaps available: image The only workaround were to restart qgis and login in again. It was also found, that if a user logs into the plugin after another user whom had access to basemaps, logged out, the newly logged user will have access to basemaps even when they shouldn't.

The cause was pinned down to the basemaps widget only fetching basemaps available to the user on the first login. So if a user logged out, and another user logged in, the previous user's basemaps were still in use. This also explains why restarting qgis solved the problem.

The problem has now been resolved and the basemaps list will be reset if a new user logs and then fetched again: image

john-dupuy commented 1 year ago

Nice catch @vermeulendivan - thank you for the PR!