Add helptext for "Admin-ish" field when editing Role
This commit is contained in:
parent
cceb66e500
commit
ebe2013849
|
@ -180,7 +180,11 @@ class RoleView(PrincipalMasterView):
|
||||||
f.set_validator('name', self.unique_name)
|
f.set_validator('name', self.unique_name)
|
||||||
|
|
||||||
# adminish
|
# adminish
|
||||||
if not self.request.is_admin:
|
if self.request.is_admin:
|
||||||
|
f.set_helptext('adminish',
|
||||||
|
"If checked, only Administrators may add/remove "
|
||||||
|
"users for the role.")
|
||||||
|
else:
|
||||||
f.remove('adminish')
|
f.remove('adminish')
|
||||||
|
|
||||||
# session_timeout
|
# session_timeout
|
||||||
|
|
Loading…
Reference in a new issue