Commit e7af42bd authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

Use unrestrictedTraverse here, because Anonymous User no longer has Access...

Use unrestrictedTraverse here, because Anonymous User no longer has Access Content Information permission on web_site_module, thus restrictedTraverse will raises Unauthorized exception.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39041 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d929c4a7
...@@ -1376,12 +1376,12 @@ class TestERP5WebWithSimpleSecurity(ERP5TypeTestCase): ...@@ -1376,12 +1376,12 @@ class TestERP5WebWithSimpleSecurity(ERP5TypeTestCase):
self.portal.Localizer.changeLanguage('en') self.portal.Localizer.changeLanguage('en')
target = self.portal.restrictedTraverse('web_site_module/site/section/my-first-web-page') target = self.portal.unrestrictedTraverse('web_site_module/site/section/my-first-web-page')
self.assertEqual('Hello, World!', target.getTextContent()) self.assertEqual('Hello, World!', target.getTextContent())
self.portal.Localizer.changeLanguage('ja') self.portal.Localizer.changeLanguage('ja')
target = self.portal.restrictedTraverse('web_site_module/site/section/my-first-web-page') target = self.portal.unrestrictedTraverse('web_site_module/site/section/my-first-web-page')
self.assertEqual('こんにちは、世界!', target.getTextContent()) self.assertEqual('こんにちは、世界!', target.getTextContent())
def test_02_LocalRolesFromRoleDefinition(self): def test_02_LocalRolesFromRoleDefinition(self):
......
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