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

update permisisons #707

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

Conversation

Maxim-Zima
Copy link

CurrentUserOrAdminOrReadOnly class was inherited from permissions.IsAuthenticated and didn't provide access to the list for unauthentificated user. Method "has permission" particularly restricts this request from unauthentificated user.
( I would like to suggest to inherite CurrentUserOrAdminOrReadOnly from IsAuthenticatedOrReadOnly)
BR
Maxim

Maxim-Zima and others added 2 commits December 11, 2022 02:19
CurrentUserOrAdminOrReadOnly class was inherited from permissions.IsAuthenticated and didn't provide access to the list for unauthentificated user.
I would like to suggest to inherite CurrentUserOrAdminOrReadOnly  from IsAuthenticatedOrReadOnly.
BR
Maxim
@codecov
Copy link

codecov bot commented May 20, 2023

Codecov Report

Merging #707 (7d081eb) into master (242ce34) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #707   +/-   ##
=======================================
  Coverage   99.02%   99.02%           
=======================================
  Files          26       26           
  Lines         820      820           
=======================================
  Hits          812      812           
  Misses          8        8           
Impacted Files Coverage Δ
djoser/permissions.py 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

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.

None yet

2 participants