[schema] fix CWSource permissions stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 20 Jan 2011 09:16:52 +0100
branchstable
changeset 6853 584679872fd7
parent 6852 970d1aab42a1
child 6857 8d2062387134
[schema] fix CWSource permissions
misc/migration/3.10.8_Any.py
schemas/base.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)
--- 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'))