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:
> Result for userA:
> ---------------------------------------------------------------------
> $LU->getProperty('rights'):
> array(1) { [1]=> string(1) "3" }
> ---------------------------------------------------------------------
> $LU->getProperty('groupRights'):
> NULL
> ---------------------------------------------------------------------
> $LU->getProperty('groupIds'):
> array(0) { }
> ---------------------------------------------------------------------
> $LU->getProperty('userRights'):
> array(1) { [1]=> string(1) "3" }
> end madwax test
for example I get the following output using the default unchanged example4:
var_dump($LU->getProperty('rights'));
array(3) {
[2]=>
int(3)
[3]=>
int(2)
[1]=>
int(3)
}
var_dump($LU->getProperty('groupRights'));
array(3) {
[2]=>
int(3)
[3]=>
int(2)
[1]=>
int(3)
}
var_dump($LU->getProperty('groupIds'));
array(2) {
[0]=>
int(2)
[1]=>
int(3)
}
var_dump($LU->getProperty('userRights'));
array(1) {
[1]=>
int(3)
}
I am at a loss at this point. I have no idea whats going on. I deleted
my database, recreated it with the demo data and got the above results.
Only possible but unlikely reason is that I have a slightly modified
MDB2 version installed.
So the last thing to do is dive into the LiveUser source and check whats
going on inside the mapUser() method. That method will call the
readUserRight() method, which will in turn call the readGroups() and
readGroupRights() methods. If you debug these methods make sure that you
are always looking into the Complex.php first, the Medium.php second and
lastly in the Simple.php when you are looking for the implementation of
a method. Sorry that I seem to be unable to locate the issue :-(
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