change permissions for Ecache
authorStephanie Marcu <stephanie.marcu@logilab.fr>
Thu, 06 Nov 2008 14:14:33 +0100
changeset 6 29ab115b9fcb
parent 0 b97547f5f1fa
child 7 36dc7906bb46
change permissions for Ecache
schemas/base.py
--- a/schemas/base.py	Wed Nov 05 15:52:50 2008 +0100
+++ b/schemas/base.py	Thu Nov 06 14:14:33 2008 +0100
@@ -309,6 +309,13 @@
     symetric = True
 
 class ECache(EntityType):
+    permissions = {
+        'read':   ('managers', 'users', 'guests'),
+        'add':    ('managers',),
+        'update': ('managers', 'users',),
+        'delete': ('managers',),
+        }
+
     name = String(required=True, unique=True, indexed=True, 
                   description=_('name of the cache'))
     timestamp = Datetime(default='NOW')