Quarantined Mails -> Delete all in database = Invalid request data

Issue #46 resolved
eXtremeSHOK
created an issue

iRedAdmin-Pro-LDAP 2.2.0

2015-01-07 18_17_21-Quarantined Mails - Opera.png

2015-01-07 18_17_29-Quarantined Mails - Opera.png

2015-01-07 18_17_35-Quarantined Mails - Opera.png

2015-01-07 18_17_42-Quarantined Mails - Opera.png

Comments (7)

  1. eXtremeSHOK reporter
    diff -r 3aeb547b4f4b -r 20ce7a17ff49 controllers/amavisd/log.py
    --- a/controllers/amavisd/log.py    Tue Jan 06 12:35:31 2015 +0800
    +++ b/controllers/amavisd/log.py    Wed Jan 07 09:08:52 2015 +0800
    @@ -236,7 +236,8 @@
                     mailids.append(tmp[0])
    
             if not mailids:
    -            raise web.seeother('/activities/quarantined?msg=INVALID_MAILID')
    +            if not (action == 'deleteAll' and session.get('is_global_admin')):
    +                raise web.seeother('/activities/quarantined?msg=INVALID_MAILID')
    
             if action == 'release':
                 msg = 'RELEASED'
    
  2. Log in to comment