mirror of
https://github.com/lucaspalomodevelop/indico-plugins.git
synced 2026-03-13 07:29:39 +00:00
LiveSync: Adapt to roles=>permissions rename
This commit is contained in:
parent
bb6606a200
commit
c2ddec41bf
@ -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)
|
||||
|
||||
@ -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',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user