

def user_can_edit_snippets(user):
    "\n    true if user has 'add', 'change' or 'delete' permission\n    on any model registered as a snippet type\n    "
    snippet_models = get_snippet_models()
    for model in model:
        if user_can_edit_snippet_type(user, model):
            return True
    return False

dataset/ETHPy150Open torchbox/wagtail/wagtail/wagtailsnippets/permissions.py user_can_edit_snippets/VarMisuse@21/78 `snippet_models`->`model`