Re: Error on PEAR page
| From: | Philip Olson | Date: | Wed, 18 Jun 2003 16:16:19 +0000 |
| Subject: | Re: Error on PEAR page | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-17553@lists.php.net to get a copy of this message | ||
Here's a patch that solves this, in package-maintainers.php
function isAllowed($package)
{
+ auth_require();
+
It will eliminate the E_NOTICE errors by not assuming the
person is logged in and will instead prompt for a login.
Regards,
Philip
On 17 Jun 2003, Mirco 'meebey' Bauer wrote:
> Note: I wasn't logged in, but the PHP Notices shouldn't come...
> after I logged in, it all worked, except when I submit a query.
> Submitting works, but when I click on the back button (which goes to
> http://pear.php.net/admin/package-maintainers.php) I get:
> Insufficient Privileges
>
> Mirco
>
> On Tue, 2003-06-17 at 16:27, Mirco 'meebey' Bauer wrote:
> > When I try to edit my maintainer list (on this page
> > http://pear.php.net/package-info.php?pacid=146)
> >
> > Then I get the following...
> >
> > Notice: Undefined index: PEAR_USER in
> > /usr/local/www/pearweb/public_html/admin/package-maintainers.php on line
> > 247
> >
> > Notice: Undefined index: PEAR_USER in
> > /usr/local/www/pearweb/public_html/admin/package-maintainers.php on line
> > 248
> > Error: Only the lead maintainer of the package or PEAR administrators
> > can edit the maintainers.
> >
> > anyone can fix this?
> >
> > Mirco
>
>
>
> --
> PEAR Development Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>