Commit 20f5f934 authored by Aurel's avatar Aurel

user site can be contained inside vault defined on document

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14688 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 629cc025
...@@ -70,9 +70,12 @@ from Products.DCWorkflow.DCWorkflow import ValidationFailed\n ...@@ -70,9 +70,12 @@ from Products.DCWorkflow.DCWorkflow import ValidationFailed\n
from Products.ERP5Type.Message import Message\n from Products.ERP5Type.Message import Message\n
\n \n
site_list = context.Baobab_getUserAssignedSiteList()\n site_list = context.Baobab_getUserAssignedSiteList()\n
if vault not in site_list:\n if site in site_list:\n
msg = Message(domain = "ui", message="Vault differ between initialisation and transition")\n if site in vault:\n
raise ValidationFailed, (msg,)\n return\n
\n
msg = Message(domain = "ui", message="Vault differ between initialisation and transition")\n
raise ValidationFailed, (msg,)\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -127,8 +130,9 @@ if vault not in site_list:\n ...@@ -127,8 +130,9 @@ if vault not in site_list:\n
<string>Products.ERP5Type.Message</string> <string>Products.ERP5Type.Message</string>
<string>Message</string> <string>Message</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>site_list</string> <string>site_list</string>
<string>site</string>
<string>msg</string> <string>msg</string>
</tuple> </tuple>
</value> </value>
......
255 257
\ No newline at end of file \ No newline at end of file
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