# HG changeset patch # User Sylvain Thénault <sylvain.thenault@logilab.fr> # Date 1271233435 -7200 # Wed Apr 14 10:23:55 2010 +0200 # Branch stable # Node ID cd389fa98526e3a6fbc01a1a2e7e84216ba7b4fe # Parent e077ae350ef3d826ee2d311fe180a72648e13f24 fix #814266: at creation time, you 'are not allowed to perform add operation on relation Expense spent_for Workcase' by fixing rql expression used for add/delete permission checking diff --git a/migration/0.5.1_Any.py b/migration/0.5.1_Any.py new file mode 100644 --- /dev/null +++ b/migration/0.5.1_Any.py @@ -0,0 +1,1 @@ +sync_schema_props_perms('spent_for', syncprops=False) diff --git a/schema.py b/schema.py --- a/schema.py +++ b/schema.py @@ -8,6 +8,6 @@ cardinality = '?*' __permissions__ = { 'read' : ('managers', 'users'), - 'add': ('managers', RRQLExpression('S in_state ST, NOT ST name "accepted"')), - 'delete': ('managers', RRQLExpression('S in_state ST, NOT ST name "accepted"')), + 'add': ('managers', RRQLExpression('NOT (S in_state ST, ST name "accepted")')), + 'delete': ('managers', RRQLExpression('NOT (S in_state ST, ST name "accepted")')), }