]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 545029: When deleting a group, no warning is thrown about group inheritance
authorFrédéric Buclin <LpSolit@gmail.com>
Wed, 17 Feb 2010 21:34:28 +0000 (22:34 +0100)
committerFrédéric Buclin <LpSolit@gmail.com>
Wed, 17 Feb 2010 21:34:28 +0000 (22:34 +0100)
r=mkanat a=LpSolit

template/en/default/admin/groups/delete.html.tmpl

index c1a9403f987a6d5fbb24613a38931a14439b73f5..9d32da4de693fc02561e17e7f1e7c4b8faef43f7 100644 (file)
     all users from this group for me.</label></p>
   [% END %]
 
+  [% IF group.granted_by_direct(constants.GROUP_MEMBERSHIP).size %]
+    <p><b>Members of this group inherit membership in the following groups:</b></p>
+    <ul>
+      [% FOREACH grantor = group.granted_by_direct(constants.GROUP_MEMBERSHIP) %]
+        <li>[% grantor.name FILTER html %]</li>
+      [% END %]
+    </ul>
+  [% END %]
+
   [% IF group.bugs.size %]
     <p><b>[% group.bugs.size FILTER html %] [%+ terms.bug %] reports are
      visible only to this group. You cannot delete this group while any