Skip to content
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

fix: Update permissions for site contributors to match requirements #1213

Merged
merged 4 commits into from
Apr 1, 2024

Conversation

tm-ruxandra
Copy link
Contributor

Description

Fix problems with site contributor permissions by granting the "change site" permission to project contributors. Restrict the name, privacy, and project id fields to owner/manager to maintain access restrictions parity with mobile client. Add test cases verifying new access controls.

Checklist

  • Corresponding issue has been opened
  • New tests added

Related Issues

Fixes #843, #925, #851

Verification steps

Create a project and a site as one user, then add a second user to the site as a contributor. Verify that the second user can now update soil data, crack data, texture data. Verify that the second user cannot update the name or privacy, but that the first user still can.

Copy link
Member

@shrouxm shrouxm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@techmatters techmatters deleted a comment from shrouxm Mar 27, 2024
@techmatters techmatters deleted a comment from shrouxm Mar 27, 2024
@shrouxm
Copy link
Member

shrouxm commented Mar 27, 2024

@paulschreiber could you avoid deleting my comments when re-iterating the same point? it is valuable information if several people had to stop and think about what a line of code is doing

@paulschreiber
Copy link
Member

paulschreiber commented Mar 27, 2024

@shrouxm I thought you had written you left a comment in the wrong place — was deleting it so you could move it to the right line. Apologies if I misunderstood.

@shrouxm shrouxm force-pushed the fix/site-contributors branch from a059945 to 1eb0899 Compare March 28, 2024 03:04
@tm-ruxandra tm-ruxandra merged commit afdaf7a into main Apr 1, 2024
7 checks passed
@tm-ruxandra tm-ruxandra deleted the fix/site-contributors branch April 1, 2024 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Contributor can't save slope data
3 participants