backport, the real one
authorPierre Habouzit (MadCoder <pierre.habouzit@m4x.org>
Sun, 20 Feb 2005 14:27:50 +0000 (14:27 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 26 Jun 2008 21:28:13 +0000 (23:28 +0200)
Patches applied:

 * opensource@polytechnique.org--2005/platal--release--0.9.4--patch-38
   owner should be able to delete their list

git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-487

bin/lists.rpc.py

index e2cec46..328005d 100755 (executable)
@@ -835,7 +835,8 @@ def delete_list(userdesc,perms,vhost,listname,del_archives=0):
     except:
         return 0
     try:
-        if perms != 'admin': return 0
+        if not is_admin_on(userdesc, perms, mlist):
+            return 0
         # remove the list
         REMOVABLES = [ os.path.join('lists', lname), ]
         # remove stalled locks