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:
> This is a printout where the code precedes the print out of the result on
> every test and my reasoning in every step.

i just noticed that you are using the DB backend and i am doing pretty 
all of my testing on MDB2 backends. i just found and fixed a bug there 
that seems to have a similar result as what you were reporting, but the 
DB backend shouldnt be affected by this.

hmm so it seems to me like the best course of action is for you try out 
example4 and see if the group rights are read properly there by adding 
the following code after the init() call:

echo '<pre>';
var_dump($LU->getProperty('rights'));
var_dump($LU->getProperty('groupRights'));
var_dump($LU->getProperty('groupIds'));
var_dump($LU->getProperty('userRights'));
die();

the next step is adapting the example4 to run with the DB backend. for 
this purpose you will need to adjust the config and you will also need 
to fix the "is_active" fields to use 0 and 1 instead of 'N' and 'Y'. 
then try and see if it works. it seemed to work for me when i just tried.

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.