Fix template bug when deleting user
This commit is contained in:
parent
1af9fbd100
commit
590444b273
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue