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:
> 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
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.