Fix template bug when deleting user

This commit is contained in:
Lance Edgar 2016-10-25 18:14:43 -05:00
parent 1af9fbd100
commit 590444b273

View file

@ -175,13 +175,14 @@ class UsersView(MasterView):
fs.roles,
])
if self.viewing:
del fs.password
del fs.confirm_password
permissions = self.request.registry.settings.get('tailbone_permissions', {})
renderer = forms.renderers.PermissionsFieldRenderer(permissions,
include_guest=True,
include_authenticated=True)
fs.append(formalchemy.Field('permissions', renderer=renderer))
if self.viewing or self.deleting:
del fs.password
del fs.confirm_password
class UserVersionView(VersionView):