cvs: pearweb /include pear-database.php
| From: | Daniel Convissor | Date: | Tue, 03 Aug 2004 05:21:36 +0000 |
| Subject: | cvs: pearweb /include pear-database.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-cvs+get-22503@lists.php.net to get a copy of this message | ||
danielc Tue Aug 3 01:21:36 2004 EDT
Modified files:
/pearweb/include pear-database.php
Log:
* Allow QA to delete a release. Bug 2043.
http://cvs.php.net/diff.php/pearweb/include/pear-database.php?r1=1.226&r2=1.227&ty=u
Index: pearweb/include/pear-database.php
diff -u pearweb/include/pear-database.php:1.226 pearweb/include/pear-database.php:1.227
--- pearweb/include/pear-database.php:1.226 Mon Aug 2 13:14:45 2004
+++ pearweb/include/pear-database.php Tue Aug 3 01:21:36 2004
@@ -17,7 +17,7 @@
| Tomas V.V.Cox <cox@php.net> |
| Martin Jansen <mj@php.net> |
+----------------------------------------------------------------------+
- $Id: pear-database.php,v 1.226 2004/08/02 17:14:45 danielc Exp $
+ $Id: pear-database.php,v 1.227 2004/08/03 05:21:36 danielc Exp $
*/
require_once 'DB/storage.php';
@@ -1783,7 +1783,7 @@
function remove($package, $release)
{
global $dbh, $auth_user;
- if (!$auth_user->isAdmin() &&
+ if (!$auth_user->isAdmin() && !$auth_user->isQA() &&
!user::maintains($auth_user->handle, $package, 'lead')) {
return PEAR::raiseError('release::remove: insufficient privileges');
}