24 SubjectRelation, |
24 SubjectRelation, |
25 String, TZDatetime, Datetime, Password, Interval, |
25 String, TZDatetime, Datetime, Password, Interval, |
26 Boolean, UniqueConstraint) |
26 Boolean, UniqueConstraint) |
27 from cubicweb.schema import ( |
27 from cubicweb.schema import ( |
28 RQLConstraint, WorkflowableEntityType, ERQLExpression, RRQLExpression, |
28 RQLConstraint, WorkflowableEntityType, ERQLExpression, RRQLExpression, |
29 PUB_SYSTEM_ENTITY_PERMS, PUB_SYSTEM_REL_PERMS, PUB_SYSTEM_ATTR_PERMS) |
29 PUB_SYSTEM_ENTITY_PERMS, PUB_SYSTEM_REL_PERMS, PUB_SYSTEM_ATTR_PERMS, |
|
30 RO_ATTR_PERMS) |
30 |
31 |
31 class CWUser(WorkflowableEntityType): |
32 class CWUser(WorkflowableEntityType): |
32 """define a CubicWeb user""" |
33 """define a CubicWeb user""" |
33 __permissions__ = { |
34 __permissions__ = { |
34 'read': ('managers', 'users', ERQLExpression('X identity U')), |
35 'read': ('managers', 'users', ERQLExpression('X identity U')), |