--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/migration/3.20.8_Any.py Thu Jun 11 17:35:11 2015 +0200
@@ -0,0 +1,1 @@
+sync_schema_props_perms('cwuri')
--- a/schemas/base.py Mon Apr 06 21:49:06 2015 +0200
+++ b/schemas/base.py Thu Jun 11 17:35:11 2015 +0200
@@ -26,7 +26,8 @@
Boolean)
from cubicweb.schema import (
RQLConstraint, WorkflowableEntityType, ERQLExpression, RRQLExpression,
- PUB_SYSTEM_ENTITY_PERMS, PUB_SYSTEM_REL_PERMS, PUB_SYSTEM_ATTR_PERMS)
+ PUB_SYSTEM_ENTITY_PERMS, PUB_SYSTEM_REL_PERMS, PUB_SYSTEM_ATTR_PERMS,
+ RO_ATTR_PERMS)
class CWUser(WorkflowableEntityType):
"""define a CubicWeb user"""
@@ -160,7 +161,7 @@
class cwuri(RelationType):
"""internal entity uri"""
- __permissions__ = PUB_SYSTEM_ATTR_PERMS
+ __permissions__ = RO_ATTR_PERMS
cardinality = '11'
subject = '*'
object = 'String'
--- a/web/test/unittest_views_editforms.py Mon Apr 06 21:49:06 2015 +0200
+++ b/web/test/unittest_views_editforms.py Thu Jun 11 17:35:11 2015 +0200
@@ -67,7 +67,6 @@
[('last_login_time', 'subject'),
('cw_source', 'subject'),
('creation_date', 'subject'),
- ('cwuri', 'subject'),
('modification_date', 'subject'),
('created_by', 'subject'),
('owned_by', 'subject'),
@@ -127,7 +126,6 @@
self.assertListEqual(rbc(e, 'main', 'metadata'),
[('cw_source', 'subject'),
('creation_date', 'subject'),
- ('cwuri', 'subject'),
('modification_date', 'subject'),
('created_by', 'subject'),
('owned_by', 'subject'),