Commit 20ed0d00 authored by Vincent Pelletier's avatar Vincent Pelletier

"owner" column must not be None anymore if owner do not have view permission,...

"owner" column must not be None anymore if owner do not have view permission, but '' (empty string).


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18527 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 61aecbbe
......@@ -1899,7 +1899,7 @@ class TestERP5Catalog(ERP5TypeTestCase, LogInterceptor):
get_transaction().commit()
self.tic()
result = sql_connection.manage_test(sql % obj.getUid())
self.assertSameSet([None], [x.owner for x in result])
self.assertSameSet([''], [x.owner for x in result])
# Check that Owner is catalogued when he can view the object
obj = folder.newContent(portal_type='Organisation')
......@@ -1916,7 +1916,7 @@ class TestERP5Catalog(ERP5TypeTestCase, LogInterceptor):
get_transaction().commit()
self.tic()
result = sql_connection.manage_test(sql % obj.getUid())
self.assertSameSet([None], [x.owner for x in result])
self.assertSameSet([''], [x.owner for x in result])
# Check that Owner is not catalogued when he can't view the
# object and when the portal type does not acquire the local roles.
......@@ -1933,7 +1933,7 @@ class TestERP5Catalog(ERP5TypeTestCase, LogInterceptor):
get_transaction().commit()
self.tic()
result = sql_connection.manage_test(sql % sub_obj.getUid())
self.assertSameSet([None], [x.owner for x in result])
self.assertSameSet([''], [x.owner for x in result])
# Check that Owner is catalogued when he can view the
# object and when the portal type does not acquire the local roles.
......@@ -1985,7 +1985,7 @@ class TestERP5Catalog(ERP5TypeTestCase, LogInterceptor):
get_transaction().commit()
self.tic()
result = sql_connection.manage_test(sql % sub_obj.getUid())
self.assertSameSet([None], [x.owner for x in result])
self.assertSameSet([''], [x.owner for x in result])
# Check that Owner is catalogued when he can view the
# object and when the portal type acquires the local roles.
......
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