From 9b12102b1834709cd29305e6bae700058adcd131 Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Thu, 2 Dec 2010 17:46:39 +0100 Subject: [PATCH] X.org's admin permission is prevails over X.net-group's permissions. Signed-off-by: Florent Bruneau --- bin/lists.rpc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/lists.rpc.py b/bin/lists.rpc.py index c456f35..e9529ae 100755 --- a/bin/lists.rpc.py +++ b/bin/lists.rpc.py @@ -137,7 +137,7 @@ class BasicAuthXMLRPCRequestHandler(SimpleXMLRPCRequestHandler): % (PLATAL_DOMAIN, uid, md5)) if res: name, forlife, perms = res - if vhost != PLATAL_DOMAIN: + if vhost != PLATAL_DOMAIN and perms != 'admin': res = mysql_fetchone ("""SELECT m.uid, IF(m.perms = 'admin', 'admin', 'lists') FROM group_members AS m INNER JOIN groups AS g ON (m.asso_id = g.id) -- 2.1.4