# HG changeset patch # User Sylvain Thénault # Date 1295511412 -3600 # Node ID 584679872fd79b78bbc7ae4083e535822c3d2aea # Parent 970d1aab42a1f7908ef45039783e0a719094ac9d [schema] fix CWSource permissions diff -r 970d1aab42a1 -r 584679872fd7 misc/migration/3.10.8_Any.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/misc/migration/3.10.8_Any.py Thu Jan 20 09:16:52 2011 +0100 @@ -0,0 +1,1 @@ +sync_schema_props_perms('CWSource', syncprops=False) diff -r 970d1aab42a1 -r 584679872fd7 schemas/base.py --- a/schemas/base.py Thu Jan 20 08:23:27 2011 +0100 +++ b/schemas/base.py Thu Jan 20 09:16:52 2011 +0100 @@ -242,6 +242,12 @@ class CWSource(EntityType): + __permissions__ = { + 'read': ('managers', 'users', 'guests'), + 'add': ('managers',), + 'update': ('managers',), + 'delete': ('managers',), + } name = String(required=True, unique=True, maxsize=128, description=_('name of the source')) type = String(required=True, maxsize=20, description=_('type of the source'))