Commit b230d3f9 authored by Bartek Górny's avatar Bartek Górny

Because the security system was changed, a Person has to have an open...

Because the security system was changed, a Person has to have an open Assignment to be able to log in.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16878 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c5f50237
...@@ -82,6 +82,8 @@ person = context.person_module.test_webmaster\n ...@@ -82,6 +82,8 @@ person = context.person_module.test_webmaster\n
person.edit(first_name=\'Test\', last_name=\'Webmaster\',\n person.edit(first_name=\'Test\', last_name=\'Webmaster\',\n
reference=\'test_webmaster\', password=\'test_webmaster\')\n reference=\'test_webmaster\', password=\'test_webmaster\')\n
person.setRole(\'internal\')\n person.setRole(\'internal\')\n
assignment = person.newContent(portal_type=\'Assignment\')\n
assignment.open()\n
\n \n
if person.getValidationState() != \'validated\':\n if person.getValidationState() != \'validated\':\n
person.validate()\n person.validate()\n
...@@ -146,6 +148,7 @@ return \'Reset Successfully.\'\n ...@@ -146,6 +148,7 @@ return \'Reset Successfully.\'\n
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>person</string> <string>person</string>
<string>assignment</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
3 4
\ 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