Commit a8a1bcac authored by Rafael Monnerat's avatar Rafael Monnerat

The blocks at secondary layer should be frozen by default.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20127 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 61c5384b
...@@ -72,11 +72,11 @@ ...@@ -72,11 +72,11 @@
# - it\'s a Simulation Movement\n # - it\'s a Simulation Movement\n
# - The user is not allowed to edit it\n # - The user is not allowed to edit it\n
# - it\'s a part of a block \n # - it\'s a part of a block \n
# - the object is one Calendar Period\n # - the object is from secondary layer\n
\n
\n \n
return (not context.portal_membership.checkPermission(\'Modify portal content\', block.parent_activity.object)) or \\\n return (not context.portal_membership.checkPermission(\'Modify portal content\', block.parent_activity.object)) or \\\n
(not ((block.position_x.relative_begin > 0) and \\\n (block.property_dict[\'sec_layer\']) or \\\n
(not ((block.position_x.relative_begin > 0) and \\\n
(block.position_x.relative_end < 1) and \\\n (block.position_x.relative_end < 1) and \\\n
(block.property_dict[\'stat\'] == 0)))\n (block.property_dict[\'stat\'] == 0)))\n
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment