def user_can_edit_snippets(user):
    snippet_models = get_snippet_models()

    for model in snippet_models:
        if user_can_edit_snippet_type(user, model):
            return True

    return False
true if user has 'add', 'change' or 'delete' permission
dataset/ETHPy150Open torchbox/wagtail/wagtail/wagtailsnippets/permissions.py/user_can_edit_snippets