

def is_shown(self, request):
    return site_permission_policy.user_has_any_permission(request.user, ['add', 'change', 'delete'])

dataset/ETHPy150Open torchbox/wagtail/wagtail/wagtailsites/wagtail_hooks.py SitesMenuItem.is_shown/original