def users_with_any_permission(self, actions):
        if 'change' in actions or 'delete' in actions:
            # either 'add' or 'change' permission means that there are *potentially*
            # some instances they can edit
            real_actions = ['add', 'change']
        elif actions in 'add':
            real_actions = ['add']
        else:
            # none of the actions passed in here are ones that we recognise, so only
            # allow them for active superusers
            return get_user_model().objects.filter(is_active=True, is_superuser=True)

        return self._users_with_perm(real_actions)
dataset/ETHPy150Open torchbox/wagtail/wagtail/wagtailcore/permission_policies/collections.py/CollectionOwnershipPermissionPolicy.users_with_any_permission/swapped operands of `in`