]> git.proxmox.com Git - pmg-api.git/commit
Quarantine API: extend download call to download whole mails
authorDominik Csapak <d.csapak@proxmox.com>
Wed, 23 Oct 2019 07:36:34 +0000 (09:36 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 25 Oct 2019 07:15:23 +0000 (09:15 +0200)
commitf18ae1465530f9dade6e546e1c2198f9d5a8b6f0
tree182802dda5ac32f4334adc5b86c2a5949fb18612
parenta279d288f6ac2e5fc32eae77208e11da3599730d
Quarantine API: extend download call to download whole mails

this makes the attachmentid parameter optional and if it is not
given, open the whole mail for download

The permission check, that a quser only is able to get their own
mails/attachments, happens in get_and_check_mail, thus we can add the
quser to the "sufficient permissions" list without opening up the
real permissions the users has.

[Thomas] add permissions info to commit message

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Tested-By: Stoiko Ivanov <s.ivanov@proxmox.com>
Reviewed-By: Stoiko Ivanov <s.ivanov@proxmox.com>
src/PMG/API2/Quarantine.pm