aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Cgi/admin.py
diff options
context:
space:
mode:
authorMark Sapiro <msapiro@value.net>2011-04-23 17:49:15 -0700
committerMark Sapiro <msapiro@value.net>2011-04-23 17:49:15 -0700
commitd994cc918097ea2ce791657ff8d6b8aef8b583f4 (patch)
treec7cb650bc918da70b09271208714b51a4df07f07 /Mailman/Cgi/admin.py
parente532415815f54361928b8f364e9211d9fcf5ade0 (diff)
downloadmailman2-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.py3
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