aboutsummaryrefslogtreecommitdiffstats
path: root/template/en/default
diff options
context:
space:
mode:
authormiketosh <michael.j.tosh@lmco.com>2011-10-23 14:18:04 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2011-10-23 14:18:04 +0200
commit5173b6cbadea03c8525218f09794b3f74ab12d96 (patch)
tree05aaf3f5230a04647ca371480dae85f974d035de /template/en/default
parentce3970fd0a2890b88485c2723e7af1633544c741 (diff)
downloadbugs-5173b6cbadea03c8525218f09794b3f74ab12d96.tar
bugs-5173b6cbadea03c8525218f09794b3f74ab12d96.tar.gz
bugs-5173b6cbadea03c8525218f09794b3f74ab12d96.tar.bz2
bugs-5173b6cbadea03c8525218f09794b3f74ab12d96.tar.xz
bugs-5173b6cbadea03c8525218f09794b3f74ab12d96.zip
Bug 690173: Cannot delete user accounts due to FK on audit_log
r/a=mkanat
Diffstat (limited to 'template/en/default')
-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>