svn: /web/php-bugs/trunk/ include/functions.php www/bug.php
| From: | Felipe Pena | Date: | Sun, 25 Jul 2010 16:57:16 +0000 |
| Subject: | svn: /web/php-bugs/trunk/ include/functions.php www/bug.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-8586@lists.php.net to get a copy of this message | ||
felipe Sun, 25 Jul 2010 16:57:16 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=301536
Log:
- Added status Cancelled to dont allow users to comment on bugs
Changed paths:
U web/php-bugs/trunk/include/functions.php
U web/php-bugs/trunk/www/bug.php
Modified: web/php-bugs/trunk/include/functions.php
===================================================================
--- web/php-bugs/trunk/include/functions.php 2010-07-25 15:59:01 UTC (rev 301535)
+++ web/php-bugs/trunk/include/functions.php 2010-07-25 16:57:16 UTC (rev 301536)
@@ -19,6 +19,7 @@
'Spam' => 'Spm',
'Re-Opened' => 'ReO',
'To be documented' => 'Tbd',
+ 'Cancelled' => 'Ccd'
);
$bug_types = array(
@@ -47,6 +48,7 @@
'Fresh' => 0,
'Bogus' => 1,
'To be documented' => 1,
+ 'Cancelled' => 1,
'Spam' => 1,
'All' => 0,
);
Modified: web/php-bugs/trunk/www/bug.php
===================================================================
--- web/php-bugs/trunk/www/bug.php 2010-07-25 15:59:01 UTC (rev 301535)
+++ web/php-bugs/trunk/www/bug.php 2010-07-25 16:57:16 UTC (rev 301536)
@@ -138,6 +138,14 @@
exit;
}
+/* Bugs marked as Cancelled just can be commented by the team */
+if ($bug['status'] == 'Cancelled' && !($is_trusted_developer ||
(isset($logged_in) && $logged_in == 'developer' && $edit == 1))) {
+ response_header('Add comment not allowed');
+ display_bug_error("You're not allowed to add coment on bug #{$bug_id}");
+ response_footer();
+ exit;
+}
+
// Handle any updates, displaying errors if there were any
$RESOLVE_REASONS = $FIX_VARIATIONS = $pseudo_pkgs = array();