This is an automated email from the ASF dual-hosted git repository. humbedooh pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git
commit 94e6de9869676e845fc43d5e4d8bbd07ec624b40 Author: Daniel Gruno <[email protected]> AuthorDate: Sun Sep 26 19:21:09 2021 -0500 regen JS --- webui/js/ponymail.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/webui/js/ponymail.js b/webui/js/ponymail.js index 219fb05..2d32d37 100644 --- a/webui/js/ponymail.js +++ b/webui/js/ponymail.js @@ -2690,6 +2690,7 @@ let admin_current_email = null; let audit_entries = [] let audit_page = 0; let audit_size = 30; +let mgmt_prefs = {} async function POST(url, formdata, state) { const resp = await fetch(url, { @@ -2906,7 +2907,11 @@ function admin_email_preview(stats, json) { div.inject(new HTML('br')); div.inject(new HTML('small', {}, "Modifying emails will remove the option to view their sources via the web interface, as the source may contain traces that reveal the edit.")) div.inject(new HTML('br')); - div.inject(new HTML('small', {}, "Emails that are removed may still be recovered by the base system administrator. For complete expungement, please contact the system administrator.")) + if (!mgmt_prefs.login.credentials.fully_delete) { + div.inject(new HTML('small', {}, "Emails that are removed may still be recovered by the base system administrator. For complete expungement, please contact the system administrator.")) + } else { + div.inject(new HTML('small', {style:{color: 'red'}}, "As GDPR enforcement is enabled on this server, emails that are removed forever from the archive when deleted, and cannot be recovered.")) + } } function admin_audit_view(state, json) { @@ -2985,6 +2990,7 @@ function admin_audit_next() { // Onload function for admin.html function admin_init() { + GET('%sapi/preferences.lua'.format(apiURL), (state, json) => {mgmt_prefs = json}, null); let mid = location.href.split('/').pop(); // Specific email/list handling? if (mid.length > 0) {
