MerginMaps / qgis-plugin

QGIS plugin for managing Mergin Maps projects
GNU General Public License v3.0
36 stars 13 forks source link

Editor is able to upload new gpkg package when other new geopackage is synchronized from the server #593

Closed jozef-budac closed 5 months ago

jozef-budac commented 5 months ago

There is one scenario, in which a user with an Editor role can upload a new geopackage to the project. It is in a case when another user with the writer(and above) right added a geopackage before to the project, and this change will synchronize down to the QGIS. In this case, both packages will be synchronized. New one from the server down to the QGIS, and also the one, which the editor created from QGIS up to the server.

Scenario 1) have a simple project and download it in the QGIS for admin and also from editor users 2) in admin user, create a new geo-package add it to the project, and synchronize with the web app 3) then which to the editor, which has still the old project. (if you use the same PC, you need to backup the project in the 1st step and then replace it with the project version created by admin) 4) Add a new geopackage with an editor account and hit synchronize 5) now you can see the warnings, but when you confirm the synchronization, the new geopackage will be added to the project, and in the web app you can see that the Editor added a new file.

https://github.com/MerginMaps/qgis-plugin/assets/83582181/4cb10cb9-30bd-4c8d-8824-cfcb6887469b

jozef-budac commented 5 months ago

In the specification, the editor is able to add new geopackage. I missed it, so this ticker is not valid