cvs: pearweb /include pear-database.php
| From: | Martin Jansen | Date: | Thu, 02 Sep 2004 20:34:59 +0000 |
| Subject: | cvs: pearweb /include pear-database.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-cvs+get-23589@lists.php.net to get a copy of this message | ||
mj Thu Sep 2 16:34:59 2004 EDT
Modified files:
/pearweb/include pear-database.php
Log:
* Allow the QA team to edit the maintainership information of packages.
http://cvs.php.net/diff.php/pearweb/include/pear-database.php?r1=1.234&r2=1.235&ty=u
Index: pearweb/include/pear-database.php
diff -u pearweb/include/pear-database.php:1.234 pearweb/include/pear-database.php:1.235
--- pearweb/include/pear-database.php:1.234 Mon Aug 30 07:17:11 2004
+++ pearweb/include/pear-database.php Thu Sep 2 16:34:59 2004
@@ -17,7 +17,7 @@
| Tomas V.V.Cox <cox@php.net> |
| Martin Jansen <mj@php.net> |
+----------------------------------------------------------------------+
- $Id: pear-database.php,v 1.234 2004/08/30 11:17:11 mj Exp $
+ $Id: pear-database.php,v 1.235 2004/09/02 20:34:59 mj Exp $
*/
require_once 'DB/storage.php';
@@ -1076,8 +1076,9 @@
// Only admins and leads can do this.
global $dbh, $auth_user;
$admin = $auth_user->isAdmin();
+ $qa = $auth_user->isQA();
- if (!$admin && !user::maintains($auth_user->handle, $pkgid, 'lead')) {
+ if (!$admin && !$qa && !user::maintains($auth_user->handle, $pkgid,
'lead')) {
return PEAR::raiseError('maintainer::updateAll: insufficient privileges');
}