Copy read permissions on ComputedRelation rdefs
authorChristophe de Vienne <christophe@unlish.com>
Fri, 17 Jul 2015 16:48:43 +0200
changeset 10552 0e7fab504305
parent 10551 1182f5f16a3d
child 10553 1d824df4f2bd
Copy read permissions on ComputedRelation rdefs Closes #5694110
schema.py
--- a/schema.py	Wed Jul 22 19:50:50 2015 +0200
+++ b/schema.py	Fri Jul 17 16:48:43 2015 +0200
@@ -1097,7 +1097,7 @@
                     subjtype, rschema.type, objtype,
                     __permissions__={'add': (),
                                      'delete': (),
-                                     'read': ('managers', 'users', 'guests')})
+                                     'read': rschema.permissions['read']})
                 rdef.infered = True
                 self.add_relation_def(rdef)