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
from Products.ERP5Type.Message import Message\n
\n
site_list = context.Baobab_getUserAssignedSiteList()\n
if vault not in site_list:\n
msg = Message(domain = "ui", message="Vault differ between initialisation and transition")\n
raise ValidationFailed, (msg,)\n
if site in site_list:\n
if site in vault:\n
return\n
\n
msg = Message(domain = "ui", message="Vault differ between initialisation and transition")\n
raise ValidationFailed, (msg,)\n
</string> </value>
</item>
<item>
......@@ -127,8 +130,9 @@ if vault not in site_list:\n
<string>Products.ERP5Type.Message</string>
<string>Message</string>
<string>_getattr_</string>
<string>context</string>
<string>context</string>
<string>site_list</string>
<string>site</string>
<string>msg</string>
</tuple>
</value>
......
255
\ No newline at end of file
257
\ 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