From ebe201384993d76971ee54ebe48f00dc4d45b1be Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Tue, 6 Dec 2022 10:30:30 -0600 Subject: [PATCH] Add helptext for "Admin-ish" field when editing Role --- tailbone/views/roles.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tailbone/views/roles.py b/tailbone/views/roles.py index 224356ed..29bb2ef4 100644 --- a/tailbone/views/roles.py +++ b/tailbone/views/roles.py @@ -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