

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(args.user))):
        return True

dataset/ETHPy150Open chop-dbhi/serrano/serrano/resources/category.py CategoryBase.is_forbidden/VarMisuse@37/62 `request`->`args`