From 5173b6cbadea03c8525218f09794b3f74ab12d96 Mon Sep 17 00:00:00 2001 From: miketosh Date: Sun, 23 Oct 2011 14:18:04 +0200 Subject: Bug 690173: Cannot delete user accounts due to FK on audit_log r/a=mkanat --- template/en/default/admin/users/confirm-delete.html.tmpl | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'template') diff --git a/template/en/default/admin/users/confirm-delete.html.tmpl b/template/en/default/admin/users/confirm-delete.html.tmpl index 1e7077eaf..8f1a3d2fc 100644 --- a/template/en/default/admin/users/confirm-delete.html.tmpl +++ b/template/en/default/admin/users/confirm-delete.html.tmpl @@ -226,7 +226,8 @@ [% IF assignee_or_qa || cc || component_cc || email_setting || flags.requestee || namedqueries || profile_setting || quips || series || watch.watched || - watch.watcher || whine_events || whine_schedules || other_safe %] + watch.watcher || whine_events || whine_schedules || otheruser.has_audit_entries || + other_safe %]

The following deletions are safe and will not generate referential integrity inconsistencies.

@@ -427,6 +428,14 @@ but the whines themselves will be left unaltered. [% END %] + [% IF otheruser.has_audit_entries %] +
  • + The user has performed audited administrative tasks + that are logged in the database. + If you delete this user account, the audit log entries + will no longer be indentifiable. +
  • + [% END %] [% Hook.process('warn_safe') %]
    -- cgit v1.2.3-24-g4f1b