def is_forbidden(self, request, response, *args, **kwargs):
        "Ensure non-privileged users cannot make any changes."
        if (request.method not in SAFE_METHODS and
                not can_change_category(request.user)):
            return True
dataset/ETHPy150Open chop-dbhi/serrano/serrano/resources/category.py/CategoryBase.is_forbidden/original