Commit 023e8b62 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

an assignor in web site is not a web user but a webmaster.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26349 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cf44df86
......@@ -842,7 +842,7 @@ class TestERP5WebWithSimpleSecurity(ERP5TypeTestCase):
self.portal.Localizer = DummyLocalizer()
self.createUser('admin', ['Manager'])
self.createUser('erp5user', ['Auditor', 'Author'])
self.createUser('web_user', ['Assignor'])
self.createUser('webmaster', ['Assignor'])
get_transaction().commit()
self.tic()
......@@ -1130,7 +1130,7 @@ class TestERP5WebWithSimpleSecurity(ERP5TypeTestCase):
self.fail("Admin should be able to expire a Web Section.")
# test if a user (ASSIGNOR) can expire them
self.changeUser('web_user')
self.changeUser('webmaster')
try:
section_2.expire()
section_6.expire()
......@@ -1155,12 +1155,12 @@ class TestERP5WebWithSimpleSecurity(ERP5TypeTestCase):
except Unauthorized:
self.fail("Admin should be able to create a Web Section.")
# test as a web user (assignor)
self.changeUser('web_user')
# test as a webmaster (assignor)
self.changeUser('webmaster')
try:
section_2 = site.newContent(portal_type='Web Section', id='section_2')
section_3 = section_2.newContent(portal_type='Web Section', id='section_3')
self.fail("A web user should not be able to create a Web Section.")
self.fail("A webmaster should not be able to create a Web Section.")
except Unauthorized:
pass
......
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