summaryrefslogtreecommitdiffstats
path: root/api/api/blogs/permissions.py
blob: 2ec78eaa5973910fdf3a2ddbbdc892efce93ce0d (plain)
1
2
3
4
5
6
from rest_framework import permissions

class IsOwnerOrReadOnly(permissions.BasePermission):
    """
    Custom permission to only allow owners/authors of the object to edit it.
    """