cvs: pearweb /public_html package-edit.php
| From: | Richard Heyes | Date: | Thu, 11 Jul 2002 16:16:34 +0000 |
| Subject: | cvs: pearweb /public_html package-edit.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-5047@lists.php.net to get a copy of this message | ||
richard Thu Jul 11 12:16:34 2002 EDT
Modified files:
/pearweb/public_html package-edit.php
Log:
* Fix detection of lead devs who aren't admins
Index: pearweb/public_html/package-edit.php
diff -u pearweb/public_html/package-edit.php:1.9 pearweb/public_html/package-edit.php:1.10
--- pearweb/public_html/package-edit.php:1.9 Sun Jun 9 18:48:52 2002
+++ pearweb/public_html/package-edit.php Thu Jul 11 12:16:34 2002
@@ -15,7 +15,7 @@
+----------------------------------------------------------------------+
| Authors: |
+----------------------------------------------------------------------+
- $Id: package-edit.php,v 1.9 2002/06/09 22:48:52 richard Exp $
+ $Id: package-edit.php,v 1.10 2002/07/11 16:16:34 richard Exp $
*/
/**
@@ -54,7 +54,7 @@
* The user has to be either a lead developer of the package or
* a PEAR administrator.
*/
-$lead = in_array($_COOKIE['PEAR_USER'], maintainer::get($_GET['id'], true));
+$lead = in_array($_COOKIE['PEAR_USER'], array_keys(maintainer::get($_GET['id'],
true)));
$admin = user::isAdmin($_COOKIE['PEAR_USER']);
if (!$lead && !$admin) {