

def after_set_privacy(self, node, permissions):
    '\n\n        :param Node node:\n        :param str permissions:\n        :return str: Alert message\n\n        '
    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)

dataset/ETHPy150Open CenterForOpenScience/osf.io/website/addons/wiki/model.py AddonWikiNodeSettings.after_set_privacy/original