Skip to content
Snippets Groups Projects
Commit cd389fa98526 authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

fix #814266: at creation time, you 'are not allowed to perform add operation...

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
parent e077ae350ef3
No related branches found
No related tags found
No related merge requests found
sync_schema_props_perms('spent_for', syncprops=False)
...@@ -8,6 +8,6 @@ ...@@ -8,6 +8,6 @@
cardinality = '?*' cardinality = '?*'
__permissions__ = { __permissions__ = {
'read' : ('managers', 'users'), 'read' : ('managers', 'users'),
'add': ('managers', RRQLExpression('S in_state ST, NOT ST name "accepted"')), 'add': ('managers', RRQLExpression('NOT (S in_state ST, ST name "accepted")')),
'delete': ('managers', RRQLExpression('S in_state ST, NOT ST name "accepted"')), 'delete': ('managers', RRQLExpression('NOT (S in_state ST, ST name "accepted")')),
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment