Add helptext for "Admin-ish" field when editing Role

This commit is contained in:
Lance Edgar 2022-12-06 10:30:30 -06:00
parent cceb66e500
commit ebe2013849

View file

@ -180,7 +180,11 @@ class RoleView(PrincipalMasterView):
f.set_validator('name', self.unique_name)
# 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')
# session_timeout