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: Tighten ACL for user routes #2929

Merged
merged 4 commits into from
Nov 6, 2023
Merged

fix: Tighten ACL for user routes #2929

merged 4 commits into from
Nov 6, 2023

Conversation

zachaysan
Copy link
Contributor

@zachaysan zachaysan commented Nov 6, 2023

Thanks for submitting a PR! Please check the boxes below:

  • I have run pre-commit to check linting
  • I have filled in the "Changes" section below?
  • I have filled in the "How did you test this code" section below?
  • I have used a Conventional Commit title for this Pull Request

Changes

I found these routes were wide open while working on a separate PR that had an endpoint with the same issue. The changes simply fix the order of the decorators and stop the incorrect instantiation of the permission classes into instances.

How did you test this code?

I wrote two tests that verified that the code was broken then watched them pass.

Copy link

vercel bot commented Nov 6, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2023 8:13pm
flagsmith-frontend-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2023 8:13pm
flagsmith-frontend-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2023 8:13pm

Copy link
Member

@khvn26 khvn26 left a comment

Choose a reason for hiding this comment

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

Quick typing suggestions, otherwise LGTM 👍

Copy link
Contributor

github-actions bot commented Nov 6, 2023

Uffizzi Preview deployment-40154 was deleted.

@codecov-commenter
Copy link

codecov-commenter commented Nov 6, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a09436d) 95.61% compared to head (0fdb57f) 95.62%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2929      +/-   ##
==========================================
+ Coverage   95.61%   95.62%   +0.01%     
==========================================
  Files        1011     1011              
  Lines       29023    29038      +15     
==========================================
+ Hits        27749    27767      +18     
+ Misses       1274     1271       -3     
Files Coverage Δ
api/organisations/tests/test_views.py 100.00% <100.00%> (ø)
api/users/views.py 91.21% <100.00%> (ø)

... and 1 file with indirect coverage changes

☔ 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
api Issue related to the REST API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants