def extract_default_password(self, response):
        """
        Checks if a user is not a manager. If yes, the default password is
        extracted from the response.
        """
        if not self.request.user.has_perm('users.can_manage'):
            if isinstance(response.data, dict):
                try:
                    del response.data['default_password']
                except __HOLE__:
                    pass
            elif isinstance(response.data, list):
                for user in response.data:
                    try:
                        del user['default_password']
                    except KeyError:
                        pass
dataset/ETHPy150Open OpenSlides/OpenSlides/openslides/users/views.py/UserViewSet.extract_default_password