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]
> But am I wrong in assuming that $LU->checkRight($rightID) should return
> false/right_level and at the same disregard from if the right is assigned to
> the user directly (user_right) or through group_membership (group_right)?
I dont quite understand what you are saying here. checkRight looks into
the "rights" property if the given right is there and if so returns the
level. remember that the *rights arrays are key == right_id and value ==
level.
> And even independently of above: I still don't seem to get
> $LU->getProperty('userRights') return anything but an empty array even
> though the flags show that the User's (with perm_id = 3) userrights are
> correctly selected from the storage (DB). :(
aha .. i tought you said that you now have the same output as i have. in
that case we are still up in the air it seems :-(
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