Commit b9cff100 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

a webmaster should be able to create a Web Section.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26350 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 023e8b62
No related merge requests found
...@@ -1160,11 +1160,8 @@ class TestERP5WebWithSimpleSecurity(ERP5TypeTestCase): ...@@ -1160,11 +1160,8 @@ class TestERP5WebWithSimpleSecurity(ERP5TypeTestCase):
try: try:
section_2 = site.newContent(portal_type='Web Section', id='section_2') section_2 = site.newContent(portal_type='Web Section', id='section_2')
section_3 = section_2.newContent(portal_type='Web Section', id='section_3') section_3 = section_2.newContent(portal_type='Web Section', id='section_3')
self.fail("A webmaster should not be able to create a Web Section.")
except Unauthorized: except Unauthorized:
pass self.fail("A webmaster should be able to create a Web Section.")
def test_suite(): def test_suite():
suite = unittest.TestSuite() suite = unittest.TestSuite()
......
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