]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 373278: Add distinctive marking for security bugs in request.cgi
authorFrédéric Buclin <LpSolit@gmail.com>
Sat, 20 Feb 2010 15:21:25 +0000 (16:21 +0100)
committerFrédéric Buclin <LpSolit@gmail.com>
Sat, 20 Feb 2010 15:21:25 +0000 (16:21 +0100)
r=pyrzak a=LpSolit

request.cgi
skins/standard/buglist.css
template/en/default/request/queue.html.tmpl

index b54477cb19097189a96192778e77a74f38bba182..e1137b3f25b200fdc2bc758f1eb7c111615e1a68 100755 (executable)
@@ -113,7 +113,7 @@ sub queue {
                 products.name, components.name,
                 flags.attach_id, attachments.description,
                 requesters.realname, requesters.login_name,
-                requestees.realname, requestees.login_name,
+                requestees.realname, requestees.login_name, COUNT(privs.group_id),
     " . $dbh->sql_date_format('flags.modification_date', '%Y.%m.%d %H:%i') .
     # Use the flags and flagtypes tables for information about the flags,
     # the bugs and attachments tables for target info, the profiles tables
@@ -141,6 +141,8 @@ sub queue {
                   ON bgmap.bug_id = bugs.bug_id
                  AND bgmap.group_id NOT IN (" .
                      $user->groups_as_string . ")
+           LEFT JOIN bug_group_map AS privs
+                  ON privs.bug_id = bugs.bug_id
            LEFT JOIN cc AS ccmap
                   ON ccmap.who = $userid
                  AND ccmap.bug_id = bugs.bug_id
@@ -292,7 +294,8 @@ sub queue {
           'attach_summary'  => $data[8] ,
           'requester'       => ($data[9] ? "$data[9] <$data[10]>" : $data[10]) , 
           'requestee'       => ($data[11] ? "$data[11] <$data[12]>" : $data[12]) , 
-          'created'         => $data[13]
+          'restricted'      => $data[13] ? 1 : 0,
+          'created'         => $data[14]
         };
         push(@requests, $request);
     }
index 00614a6cf3a9fd61e6195f5ac1291dda4137b709..039c1e56e2dd15159277e930d4d0a3974fe56d73 100644 (file)
@@ -59,14 +59,14 @@ table.bz_buglist td, table.bz_buglist th {
 
 /* we use a first-child class and not the pseudo-class because IE
  * doesn't support it :-( */
-tr.bz_secure td.first-child { 
+tr.bz_secure td.first-child, a.bz_secure { 
   background-image: url("../../images/padlock.png");
   background-position: center left;
   background-repeat: no-repeat;
   background-color: inherit;
 }
 
-th.first-child, td.first-child {
+th.first-child, td.first-child, a.bz_secure {
   padding-left: 20px;
 }
 
index 98a3316222f3750dc987dcbab34256612fab64c8..2d1769b961b132681b98dbc3fd61baa57fe28340 100644 (file)
@@ -31,6 +31,7 @@
   "
   onload="var f = document.request_form; selectProduct(f.product, f.component, null, null, 'Any');"
   javascript_urls=["js/productform.js"]
+  style_urls = ['skins/standard/buglist.css']
 %]
 
 <script type="text/javascript">
@@ -214,7 +215,8 @@ to some group are shown by default.
 [% END %]
 
 [% BLOCK display_bug %]
-  <a href="show_bug.cgi?id=[% request.bug_id %]">
+  <a href="show_bug.cgi?id=[% request.bug_id %]"
+     [%- ' class="bz_secure"' IF request.restricted %]>
     [% request.bug_id %]: [%+ request.bug_summary FILTER html %]</a>
 [% END %]