RE: checkRight function on the LiveUser object
"Jan Bolmeson" <[email protected]>
| Newsgroups | gmane.comp.php.pear.liveuser |
|---|---|
| Message-ID | <[email protected]> |
I think the error with the mapping is fixed... I namely init liveuser through an included ini-file and than I happened to have a AuthFilter that I also included. The latter also tried to init a LU-object. I removed the second init. At this point the Errostack is empty throughout the application. Yes, to the second question. My perm_users_table does look as follows: Perm_user_id auth_user_id auth_container_name perm_type 3 3 DB 3 4 4 DB 1 //jan -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Lukas Smith Sent: den 20 juni 2005 10:40 To: liveUser-DevList Subject: Re: [LiveUser] checkRight function on the LiveUser object Jan Bolmeson wrote: > I changed removed the $db part and it works as it did before. I downloaded > the latest version yesterday, and just to be on the safe side I downloaded > it once again 5 minutes ago. The instance-error does not occur on my first > initialization. But rather on my subpage. This is an error I'll try to solve > my self - but the problem persists, even with the LU object attached to this > mail the print-out on is the same on the functions you asked me to return: > > $LU->getProperty('rights'): > array(0) > > $LU->getProperty('groupRights'): > NULL > > $LU->getProperty('groupIds'): > array(0) > > $LU->getProperty('userRights'): > array(0) Ok this looks better. Now the problem is that the mapping is broken. That means that liveuser was unable to map the authenticated user to a perm user. this is likely to be caused by incorrect auth container names. however it sounded like you were using the admin api for all administration. a failed mapping is no error (however maybe we should fire an event here). looking at your config array it seems like inside your liveuser_perm_users table you should have the string "DB" in your authcontanername field. 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