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

设置权限时,如果允许任意用户get,只允许授权用户post的话,可以引入IsAuthenticatedOrReadOnly类 #5

Open
np-csu opened this issue Aug 26, 2018 · 1 comment

Comments

@np-csu
Copy link

np-csu commented Aug 26, 2018

No description provided.

@twtrubiks
Copy link
Owner

感謝,看了一下官方的文件 http://www.django-rest-framework.org/api-guide/permissions/#isauthenticatedorreadonly,的確是這樣,感謝提醒。

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

No branches or pull requests

2 participants