Re: checkRight function on the LiveUser object

Lukas Smith <[email protected]>
Newsgroups gmane.comp.php.pear.liveuser
Organization BackendMedia GbR
Message-ID <[email protected]>
Jan Bolmeson wrote:

> [Jan Bolmeson] 
> The following results and flags show that the user_right is correctly
> collected from the database and assigned to $this->userRights in
> Perm::Simple.php::readUserRights() Line 236. What happens with the
> $this->userRights later? 

the naming may be slightly confusing but:

- rights are the combined user and group rights the user has
- userRights are only the rights directly assigned to the user
- groupRights are only the rights the user has gained through (sub)group 
membership

as a result rights is essentially the addition of the groupRights to the 
userRights where higher levels overwrite lower levels of you are using 
the complex container.

checkRight() and checkRightLevel() only check the rights property 
obviously ..

regards,
Lukas Smith
[email protected]
_______________________________
   BackendMedia
   www.backendmedia.com
   [email protected]

   Linn Zwoch Smith GbR
   Pariser Str. 44
   D-10707 Berlin

   Tel +49 30 83 22 50 00
   Fax +49 30 83 22 50 07
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.