-
-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Limit QGIS project modifications to managers and admins #958
Conversation
Task linked: QF-3822 Limit .qgs file edit to admins |
Co-authored-by: Ivan Ivanov <suricactus@users.noreply.github.com>
Open question: should we also limit modification of project plugins to admins? I think so |
Sounds reasonable, but the question is up to @suricactus If so, let's add a new task for that; This probably doesn't have to be configurable on the project like the |
Strange that |
@boardend , I would tie this to is_projectfile_restricted. I can't see need for further permission granularity to cover the project plugin .qml vs the project file .qgz |
@boardend , you'll also need to take into consideration another project sidecar file. When saved as .qgs, QGIS saves an _attacments.zip file too. Logic should be updated here to catch all project sidecar files: |
Let's leave the plugins out of the scope of this PR. As for the IMO we should create a function |
@suricactus , you are correct about the convention. And yeah, same logic to identify the plugin would be used here.
The function your suggesting would allow for emancipation of that logic too, which is useful. |
…ct files in the long run
@nirvn & @suricactus I just created the follow up task to refactor the QGIS/QField project file detection: https://app.clickup.com/t/2192114/QF-4375 |
Did a final updated based on the discussion with @suricactus Let's accept this one and I will create a new PR to respect all QGIS/QField related projectfiles |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! In a follow-up would be great to add a test.
Add a
has_restricted_projectfiles
flag to the project in order to restrict modifications of the QGIS project file to users that have the "Manager" or "Administrator" role