checkRight() patch

Lukas Kahwe Smith <[email protected]> Fri, 26 Aug 2005 16:28:51 +0200
Newsgroups gmane.comp.php.pear.liveuser
Message-ID <[email protected]>
Hi,

what do people think about the following patch? essentially it means 
that right_id === 0 checks return LIVEUSER_MAX_LEVEL if the user is 
logged in (even if there is no perm user id mapping).

RCS file: /repository/pear/LiveUser/LiveUser.php,v
retrieving revision 1.101
diff -r1.101 LiveUser.php
1451a1452,1453
 >         } elseif ($rights === 0 && is_a($this->_auth, 
'LiveUser_Auth_Common')) {
 >             return LIVEUSER_MAX_LEVEL;

regards,
Lukas