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

Don't show client projects for users just assigned to a project #573

Merged
merged 16 commits into from
Jan 27, 2025

Conversation

ColonelThirtyTwo
Copy link
Collaborator

This is a breaking change in how permissions work. Currently, if an
operator is assigned to any project for a client, they get read access
to all of the client's other projects as well. This patch changes that
to only allow access to the project they've been assigned.

Management and users with client invitations still have full view
access.

Also adds UI for adding/removing client invitations.

(This is a rebase of #500 targeting the main branch)

This is a breaking change in how permissions work. Currently, if an
operator is assigned to any project for a client, they get read access
to all of the client's other projects as well. This patch changes that
to only allow access to the project they've been assigned.

Management and users with client invitations still have full view
access.
Previously client invitations were only editable via the Django admin
panel. This adds a UI to the client edit page for adding and removing
client invitations.
Copy link

codecov bot commented Jan 15, 2025

Codecov Report

Attention: Patch coverage is 63.94052% with 97 lines in your changes missing coverage. Please review.

Project coverage is 91.80%. Comparing base (dd57108) to head (a55ed47).
Report is 17 commits behind head on v5-rc.

Files with missing lines Patch % Lines
ghostwriter/rolodex/views.py 45.83% 65 Missing ⚠️
ghostwriter/rolodex/forms_client.py 33.33% 20 Missing ⚠️
ghostwriter/rolodex/forms_project.py 58.62% 12 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##            v5-rc     #573      +/-   ##
==========================================
- Coverage   91.97%   91.80%   -0.18%     
==========================================
  Files         323      323              
  Lines       18690    18900     +210     
==========================================
+ Hits        17190    17351     +161     
- Misses       1500     1549      +49     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@chrismaddalena chrismaddalena changed the base branch from master to v5-rc January 24, 2025 00:07
@chrismaddalena
Copy link
Collaborator

I am merging this into the v5-rc branch to do an RC release for testing.

@chrismaddalena chrismaddalena merged commit d0e4d4a into GhostManager:v5-rc Jan 27, 2025
6 of 8 checks passed
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.

2 participants