Re: [Phplib-users] Giancarlo Pinerolo (pingus) auth patch
Brought to you by:
nhruby,
richardarcher
|
From: Giancarlo P. <gia...@na...> - 2002-06-06 23:33:29
|
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, You can be wrong here Gian |