RE: checkRight function on the LiveUser object

"Jan Bolmeson" <[email protected]>
Newsgroups gmane.comp.php.pear.liveuser
Message-ID <[email protected]>
I have been troubleshooting some more and also found the following error - I
don't really know how to fix it... Maybe it is one reason to why I fail the
checkRIght...

_stack => &object(PEAR_ErrorStack)#17 (9) {
                _errors          => array(1) {
                    0 => &array(7) {
                        code    => int -1
                        params  => array(1) {
                            msg => string(39) Could not instanciate storage
container
                        }
                        package => string(8) LiveUser
                        level   => string(9) exception
                        time    => float 1119220087.1547
                        context => array(4) {
                            file     => string(46)
c:\webserver\php\PEAR\LiveUser\Perm\Simple.php
                            line     => int 156
                            function => string(4) init
                            class    => string(21) LiveUser_Perm_Complex
                        }
                        message => string(13) Unknown error
                    }
                }



-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Lukas Smith
Sent: den 19 juni 2005 19:42
To: LiveUser-DevList
Subject: Re: [LiveUser] checkRight function on the LiveUser object

Jan Bolmeson wrote:
> What do you mean by running the updateProperty() - how does that function
> relate to groupRights? I have also tried to destroy the object (both
client
> and admin) and then created it again (in order to try to "flush" the
> container) but it doesn't seem to work... :(

the updateProperty() method reloads all user data from the original 
source, since any client instance doesnt know whats going on inside the 
admin API. however creating a new client instance for the user should 
serve the same purpose.

IIRC example 4 makes use of groups rights and i think it worked when i 
tried it the other day ..

could you give the output of

$LU->getProperty('rights');
$LU->getProperty('groupRights');
$LU->getProperty('groupIds');
$LU->getProperty('userRights');

regards,
Lukas

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