def after_set_privacy(self, node, permissions):
        if permissions == 'private':
            if self.is_publicly_editable:
                self.set_editing(permissions=False, log=False)
                return (
                    'The wiki of {name} is now only editable by write contributors.'.format(
                        name=node.title,
                    )
                )
:param Node node:
dataset/ETHPy150Open CenterForOpenScience/osf.io/website/addons/wiki/model.py/AddonWikiNodeSettings.after_set_privacy