Commit cbc6e198 authored by Lennart Regebro's avatar Lennart Regebro

When you add roles in manage_access, roles are now stripped of any leading or trailing

spaces.
parent 21b7c090
......@@ -240,6 +240,8 @@ Zope Changes
from the Zope 3 source tree (to get rid of redundant packages)
Bugs Fixed
- When you add roles in manage_access, roles are now stripped of
any leading or trailing spaces.
- Collector #2062: Fix manage_historyCopy, which was broken, and write
tests for it.
......
......@@ -473,7 +473,7 @@ class RoleManager(ExtensionClass.Base, PermissionMapping.RoleManager):
"""
if submit=='Add Role':
role=reqattr(REQUEST, 'role')
role=reqattr(REQUEST, 'role').strip()
return self._addRole(role, REQUEST)
if submit=='Delete Role':
......
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