schema.py
branchstable
changeset 4570 ede247bbbf62
parent 4466 8b0ca7904820
child 4574 2380444d982c
--- a/schema.py	Mon Feb 15 15:05:15 2010 +0100
+++ b/schema.py	Mon Feb 15 15:10:25 2010 +0100
@@ -919,6 +919,11 @@
             kwargs['o'] = toeid
         return self._check(session, **kwargs)
 
+# in yams, default 'update' perm for attributes granted to managers and owners.
+# Within cw, we want to default to users who may edit the entity holding the
+# attribute.
+ybo._DEFAULT_ATTRPERMS['update'] = (
+    'managers', ERQLExpression('U has_update_permission X'))
 
 # workflow extensions #########################################################