diff options
author | Mark Sapiro <msapiro@value.net> | 2011-04-23 17:49:15 -0700 |
---|---|---|
committer | Mark Sapiro <msapiro@value.net> | 2011-04-23 17:49:15 -0700 |
commit | d994cc918097ea2ce791657ff8d6b8aef8b583f4 (patch) | |
tree | c7cb650bc918da70b09271208714b51a4df07f07 /Mailman/Cgi/admin.py | |
parent | e532415815f54361928b8f364e9211d9fcf5ade0 (diff) | |
download | mailman2-d994cc918097ea2ce791657ff8d6b8aef8b583f4.tar.gz mailman2-d994cc918097ea2ce791657ff8d6b8aef8b583f4.tar.xz mailman2-d994cc918097ea2ce791657ff8d6b8aef8b583f4.zip |
Added a logout link to the admindb interface and made both admin and
admindb logout effective for a site admin cookie if allowed.
Bug #769318.
Diffstat (limited to '')
-rw-r--r-- | Mailman/Cgi/admin.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Mailman/Cgi/admin.py b/Mailman/Cgi/admin.py index b4455cbc..22ebe16a 100644 --- a/Mailman/Cgi/admin.py +++ b/Mailman/Cgi/admin.py @@ -107,6 +107,9 @@ def main(): # Is this a log-out request? if category == 'logout': + # site-wide admin should also be able to logout. + if mlist.AuthContextInfo(mm_cfg.AuthSiteAdmin)[0] == 'site': + print mlist.ZapCookie(mm_cfg.AuthSiteAdmin) print mlist.ZapCookie(mm_cfg.AuthListAdmin) Auth.loginpage(mlist, 'admin', frontpage=1) return |