Re: [Phplib-users] Session,Auth,Perm
Brought to you by:
nhruby,
richardarcher
From: Ben C. <php...@be...> - 2001-08-20 16:47:06
|
To protect an entire page you probably want $perm->check() instead of $perm->have_perm(). On Mon, Aug 20, 2001 at 09:59:57AM -0500, White, Bob wrote: > Hi All, > I can't seem to get session, auth and perm to work right. > > I have at the top of my page: > > <?php > page_open(array("sess"=>"ieweb_Session", > "auth"=>"ieweb_Auth", > "perm"=>"ieweb_Perm")); > if ($perm->have_perm("admin")): > > <!-- Code that I want to protect --> > > endif; > page_close(); > ?> > > I get a login screen, I try to login under a user that has only "user" > rights and it still lets me in. The local.inc is as delivered except > modified for my ieweb... subclasses. > > Help! Please, > > Bob White > > > _______________________________________________ > Phplib-users mailing list > Php...@li... > http://lists.sourceforge.net/lists/listinfo/phplib-users |