How to use has_object_permission to check if a user can access an object in function based views

前端 未结 0 1312
滥情空心
滥情空心 2020-12-03 10:16

I have a note object which can be accessd from notes/{pk}. If the method is GET or a read only method I was to allow anyone access to the note as long as the note is public

相关标签:
回答
  • 消灭零回复
提交回复
热议问题