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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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 59.09091% with 45 lines in your changes missing coverage. Please review.

Project coverage is 91.93%. Comparing base (6a9b80a) to head (c4f69f8).

Files with missing lines Patch % Lines
ghostwriter/rolodex/views.py 21.87% 25 Missing ⚠️
ghostwriter/rolodex/forms_client.py 33.33% 20 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #573      +/-   ##
==========================================
- Coverage   91.97%   91.93%   -0.04%     
==========================================
  Files         323      323              
  Lines       18690    18761      +71     
==========================================
+ Hits        17190    17248      +58     
- Misses       1500     1513      +13     

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

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.

1 participant