Commit ddde18e0 authored by Vincent Pelletier's avatar Vincent Pelletier

Keep the beta category visible by manager untill it's indexed. This is...

Keep the beta category visible by manager untill it's indexed. This is because, as indexation happens with portal_catalog's owner, and as it can be checked explicitely even in unrestricted environment (like it's done in CMFCategories), it has no meaning to reindex an invisible object. Thus the it's the test which must be fixed.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21358 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9f715cbd
......@@ -1807,12 +1807,6 @@ class TestPropertySheet:
title = beta_title, )
beta_path = beta.getCategoryRelativeUrl()
beta.manage_permission('View', roles=[], acquire=0)
beta.manage_permission('Access contents information', roles=[], acquire=0)
# with this security setting, it's not possible to access "beta":
self.assertRaises(Unauthorized,
region_category.restrictedTraverse, "beta")
gamma_id = "gamma"
gamma_title = "Gamma System"
gamma = region_category.newContent(
......@@ -1825,6 +1819,13 @@ class TestPropertySheet:
get_transaction().commit()
self.tic()
beta.manage_permission('View', roles=[], acquire=0)
beta.manage_permission('Access contents information', roles=[], acquire=0)
# with this security setting, it's not possible to access "beta":
self.assertRaises(Unauthorized,
region_category.restrictedTraverse, "beta")
# Create a new person, and associate it to beta and gamma.
module = self.getPersonModule()
foo = module.newContent(portal_type='Person', title='Foo')
......
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