aboutsummaryrefslogtreecommitdiffstats
path: root/layerindex/restperm.py
blob: fb9f715d26275e753e495b4ee740281a8c29732b (plain)
1
2
3
4
5
6
7
from rest_framework import permissions

class ReadOnlyPermission(permissions.BasePermission):
    def has_permission(self, request, view):
        if request.method in permissions.SAFE_METHODS:
            return True
        return False