summaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
authormiketosh <michael.j.tosh@lmco.com>2011-10-23 14:20:15 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2011-10-23 14:20:15 +0200
commitd47f6057e0257b3282ff25a144b9ef36ec741012 (patch)
treef390798c18074a9eda97f5801abdf81712cafb9a /template
parent0122a4e056b7f9c4f22d7c67ba9801f0c8c49d71 (diff)
downloadbugzilla-d47f6057e0257b3282ff25a144b9ef36ec741012.tar.gz
bugzilla-d47f6057e0257b3282ff25a144b9ef36ec741012.tar.xz
Bug 690173: Cannot delete user accounts due to FK on audit_log
r/a=mkanat
Diffstat (limited to 'template')
-rw-r--r--template/en/default/admin/users/confirm-delete.html.tmpl11
1 files changed, 10 insertions, 1 deletions
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 %]
<div class="warningmessages">
<p>The following deletions are <b>safe</b> and will not generate
referential integrity inconsistencies.</p>
@@ -427,6 +428,14 @@
but the whines themselves will be left unaltered.
</li>
[% END %]
+ [% IF otheruser.has_audit_entries %]
+ <li>
+ 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.
+ </li>
+ [% END %]
[% Hook.process('warn_safe') %]
</ul>
</div>