LiveSync: Adapt to roles=>permissions rename

This commit is contained in:
Adrian Moennich 2017-09-14 16:31:16 +02:00
parent bb6606a200
commit c2ddec41bf
2 changed files with 4 additions and 4 deletions

View File

@ -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)

View File

@ -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',