diff --git a/livesync/indico_livesync/handler.py b/livesync/indico_livesync/handler.py index 504e1d7..9372897 100644 --- a/livesync/indico_livesync/handler.py +++ b/livesync/indico_livesync/handler.py @@ -144,8 +144,8 @@ def _acl_entry_changed(sender, obj, entry, old_data, **kwargs): register = True # entry updated elif entry is not None and old_data is not None: - old_access = bool(old_data['read_access'] or old_data['full_access'] or old_data['roles']) - new_access = bool(entry.full_access or entry.read_access or entry.roles) + old_access = bool(old_data['read_access'] or old_data['full_access'] or old_data['permissions']) + new_access = bool(entry.full_access or entry.read_access or entry.permissions) register = old_access != new_access if register: _register_change(obj, ChangeType.protection_changed) diff --git a/livesync/setup.py b/livesync/setup.py index 4bb9a13..ce6e241 100644 --- a/livesync/setup.py +++ b/livesync/setup.py @@ -21,7 +21,7 @@ from setuptools import find_packages, setup setup( name='indico-plugin-livesync', - version='1.0rc1', + version='2.0.dev0', description='Framework for pushing Indico event data to external services', url='https://github.com/indico/indico-plugins', license='https://www.gnu.org/licenses/gpl-3.0.txt', @@ -31,7 +31,7 @@ setup( zip_safe=False, include_package_data=True, install_requires=[ - 'indico>=2.0a1' + 'indico>=2.1.dev0' ], classifiers=[ 'Environment :: Plugins',