From bb4873af815ee6fa4b544162ad8e52c6395b79d0 Mon Sep 17 00:00:00 2001 From: Mark Sapiro Date: Mon, 14 Apr 2008 10:45:27 -0700 Subject: options.py - Made the ability for a list admin to change a members password conditional on mm_cfg.OWNERS_CAN_CHANGE_MEMBER_PASSWORDS. Defaults.py.in - Added OWNERS_CAN_CHANGE_MEMBER_PASSWORDS = No. --- Mailman/Cgi/options.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Mailman/Cgi') diff --git a/Mailman/Cgi/options.py b/Mailman/Cgi/options.py index 67700028..3c736483 100644 --- a/Mailman/Cgi/options.py +++ b/Mailman/Cgi/options.py @@ -421,6 +421,14 @@ address. Upon confirmation, any other mailing list containing the address return if cgidata.has_key('changepw'): + # Is this list admin and is list admin allowed to change passwords. + if not (is_user_or_siteadmin + or mm_cfg.OWNERS_CAN_CHANGE_MEMBER_PASSWORDS): + doc.addError(_("""The list administrator may not change the + password for a user.""")) + options_page(mlist, doc, user, cpuser, userlang) + print doc.Format() + return newpw = cgidata.getvalue('newpw') confirmpw = cgidata.getvalue('confpw') if not newpw or not confirmpw: -- cgit v1.2.3