Commit 0c8b5117 authored by Jérome Perrin's avatar Jérome Perrin

products/* fix typo on Access content*s* information permission name

parent 13c0f2e1
...@@ -158,7 +158,7 @@ class PasswordTool(BaseTool): ...@@ -158,7 +158,7 @@ class PasswordTool(BaseTool):
user_value = self.getPortalObject().unrestrictedTraverse( user_value = self.getPortalObject().unrestrictedTraverse(
user_path) user_path)
email_value = user_value.getDefaultEmailValue( email_value = user_value.getDefaultEmailValue(
checked_permission='Access content information') checked_permission=Permissions.AccessContentsInformation)
if email_value is None or not email_value.asText(): if email_value is None or not email_value.asText():
msg = translateString( msg = translateString(
"User ${user} does not have an email address, please contact site " "User ${user} does not have an email address, please contact site "
......
...@@ -2613,7 +2613,7 @@ class TestERP5Type(PropertySheetTestCase, LogInterceptor): ...@@ -2613,7 +2613,7 @@ class TestERP5Type(PropertySheetTestCase, LogInterceptor):
self.assertFalse(guarded_hasattr(obj, 'setFooBar')) self.assertFalse(guarded_hasattr(obj, 'setFooBar'))
self.assertTrue(guarded_hasattr(obj, 'getFooBar')) self.assertTrue(guarded_hasattr(obj, 'getFooBar'))
# getter is protected with Access content information # getter is protected with Access contents information
obj.manage_permission(Permissions.ModifyPortalContent, ['Manager'], 1) obj.manage_permission(Permissions.ModifyPortalContent, ['Manager'], 1)
obj.manage_permission(Permissions.AccessContentsInformation, [], 0) obj.manage_permission(Permissions.AccessContentsInformation, [], 0)
self.assertTrue(guarded_hasattr(obj, 'setFooBar')) self.assertTrue(guarded_hasattr(obj, 'setFooBar'))
...@@ -2635,7 +2635,7 @@ class TestERP5Type(PropertySheetTestCase, LogInterceptor): ...@@ -2635,7 +2635,7 @@ class TestERP5Type(PropertySheetTestCase, LogInterceptor):
self.assertFalse(guarded_hasattr(obj, 'setFooBarList')) self.assertFalse(guarded_hasattr(obj, 'setFooBarList'))
self.assertTrue(guarded_hasattr(obj, 'getFooBarList')) self.assertTrue(guarded_hasattr(obj, 'getFooBarList'))
# getter is protected with Access content information # getter is protected with Access contents information
obj.manage_permission(Permissions.ModifyPortalContent, ['Manager'], 1) obj.manage_permission(Permissions.ModifyPortalContent, ['Manager'], 1)
obj.manage_permission(Permissions.AccessContentsInformation, [], 0) obj.manage_permission(Permissions.AccessContentsInformation, [], 0)
self.assertTrue(guarded_hasattr(obj, 'setFooBarList')) self.assertTrue(guarded_hasattr(obj, 'setFooBarList'))
...@@ -2664,7 +2664,7 @@ class TestERP5Type(PropertySheetTestCase, LogInterceptor): ...@@ -2664,7 +2664,7 @@ class TestERP5Type(PropertySheetTestCase, LogInterceptor):
self.assertTrue(guarded_hasattr(obj, 'getRegionList')) self.assertTrue(guarded_hasattr(obj, 'getRegionList'))
self.assertTrue(guarded_hasattr(obj, 'getRegionValueList')) self.assertTrue(guarded_hasattr(obj, 'getRegionValueList'))
self.assertTrue(guarded_hasattr(obj, 'getRegionRelatedValueList')) self.assertTrue(guarded_hasattr(obj, 'getRegionRelatedValueList'))
# getter is protected with Access content information # getter is protected with Access contents information
obj.manage_permission(Permissions.ModifyPortalContent, ['Manager'], 1) obj.manage_permission(Permissions.ModifyPortalContent, ['Manager'], 1)
obj.manage_permission(Permissions.AccessContentsInformation, [], 0) obj.manage_permission(Permissions.AccessContentsInformation, [], 0)
self.assertTrue(guarded_hasattr(obj, 'setRegion')) self.assertTrue(guarded_hasattr(obj, 'setRegion'))
......
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