diff options
Diffstat (limited to 'api/api/blogs/permissions.py')
-rw-r--r-- | api/api/blogs/permissions.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/api/api/blogs/permissions.py b/api/api/blogs/permissions.py new file mode 100644 index 0000000..2ec78ea --- /dev/null +++ b/api/api/blogs/permissions.py @@ -0,0 +1,6 @@ +from rest_framework import permissions + +class IsOwnerOrReadOnly(permissions.BasePermission): + """ + Custom permission to only allow owners/authors of the object to edit it. + """
\ No newline at end of file |