Re: [Phplib-users] Giancarlo Pinerolo (pingus) auth patch
Brought to you by:
nhruby,
richardarcher
|
From: Giancarlo P. <gia...@na...> - 2002-06-06 23:55:57
|
Layne Weathers wrote: > > > The perm->check feature I have to fix, to return true/false instead of > > showing perminvalid (which was absurd anyway, you'd want a > > login/register form instead) > > You don't have to 'fix' anything. That's exactly what $perm->have_perm() > does. $perm->check() is a shortcut to test and then show perminvalid if > have_perm() failed. > > No, it isn't absurd. The login/register form should be there if no valid > $auth is in place. The perminvalid makes perfect sense if the user is > already logged in and does not have permission to access the page. I assume > that each user has only one user account, I mean, there are two possibilities based on different assumptions. One will lead you to something that cannot comprise the other assumption The other will bring you to something that can comprise both assumptions. 'Not knowing how to red nor how to write', we say here...which one do you choose? Unless there's a specific policy that prohibits having more than an account... Gian so showing them a login/register > form is a waste of time. > > It sounds like you need to tweak your perminvalid(). If there is a valid > auth, then show them perminvalid, otherwise show them the login form. > > Layne Weathers > Ifworld Inc. > > _______________________________________________________________ > > Don't miss the 2002 Sprint PCS Application Developer's Conference > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm > > _______________________________________________ > Phplib-users mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phplib-users |