svn: /web/php-bugs/trunk/www/ report.php
| From: | Felipe Pena | Date: | Tue, 08 Mar 2011 13:23:27 +0000 |
| Subject: | svn: /web/php-bugs/trunk/www/ report.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-10604@lists.php.net to get a copy of this message | ||
felipe Tue, 08 Mar 2011 13:23:27 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=309020
Log:
- Don't show private related bugs to non allowed people
Changed paths:
U web/php-bugs/trunk/www/report.php
Modified: web/php-bugs/trunk/www/report.php
===================================================================
--- web/php-bugs/trunk/www/report.php 2011-03-08 13:12:52 UTC (rev 309019)
+++ web/php-bugs/trunk/www/report.php 2011-03-08 13:23:27 UTC (rev 309020)
@@ -15,6 +15,7 @@
bugs_authenticate($user, $pw, $logged_in, $user_flags);
$is_trusted_developer = ($user_flags & BUGS_TRUSTED_DEV);
+$is_security_developer = ($user_flags & BUGS_SECURITY_DEV);
// captcha is not necessary if the user is logged in
if (!$logged_in) {
@@ -52,6 +53,10 @@
$_POST['in']['did_luser_search'] = 1;
$where_clause = "WHERE package_name != 'Feature/Change Request'";
+
+ if (!$is_security_developer) {
+ $where_clause .= " AND private = 'N' ";
+ }
// search for a match using keywords from the subject
list($sql_search, $ignored) = format_search_string($_POST['in']['sdesc']);