RE: checkRight function on the LiveUser object
"Jan Bolmeson" <[email protected]>
| Newsgroups | gmane.comp.php.pear.liveuser |
|---|---|
| Message-ID | <[email protected]> |
I have adapted the conf as far as I am able to login and I pass the
LU-object init without errors but the output is similar to earlier.
---------------------------------------------------------------------
$LU->getProperty('rights'):
array(0) { }
---------------------------------------------------------------------
$LU->getProperty('groupRights'):
NULL
---------------------------------------------------------------------
$LU->getProperty('groupIds'):
array(0) { }
---------------------------------------------------------------------
$LU->getProperty('userRights'):
NULL
end madwax test
I downloaded the latest cvs version before I began (15minutes ago) and
updated the db according to demodata and your instructions... Any
suggestions?
//jan
____________________________________________
Jan Bolmeson, Civilingenjör
epost: ([email protected])
mobil: 0735 12 86 18 | Digitalt visitkort (vCard)
Fernebrant & Ivtaco Mediaproduktion
Kristianstadgatan 41B | 214 35 MALMÖ
tfn: 040 30 11 88 | http://www.ivtaco.se
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Lukas Smith
Sent: den 20 juni 2005 16:48
To: LiveUser-DevList
Subject: Re: [LiveUser] checkRight function on the LiveUser object
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
_______________________________________________
LiveUser mailing list
[email protected]
http://mailman.21st-hq.de/mailman/listinfo/liveuser