RE: Is this correct? - Perm_type == 3 overrides userrights

"Jan Bolmeson" <[email protected]>
Newsgroups gmane.comp.php.pear.liveuser
Message-ID <[email protected]>
> Jan Bolmeson wrote:
> > I just stumbled across a thing that took my a couple of hours to figure
> out.
> > My userrights were lost (as last time), i.e.
> >
> > Var_Dump::display( $LU->getProperty('userRights') );
> >
> > It displayed only an empty array. All the rights were correctly
> configured -
> > EXCEPT that I had chosen a perm_type of level 3 for the specific user.
> Hence
> > it seems that the userrights were overridden since the user was not a
> member
> > of an admin_area.
> 
> no .. it should simply add the rights to the array.
> anything would be a bug .. but i dont see any indication of a bug from
> reading the source ..
>



After further debugging the var "$this->userRights" is overwritten on line: 

$result = $this->readAreaAdminAreas($this->permUserId);

Code:
--------------------------------------------------------------
	  echo "<pre>aa";
        print_r( $this->userRights  );
        echo "</pre>";
            $result = $this->readAreaAdminAreas($this->permUserId);
        echo "<pre>aa";
        print_r( $this->userRights  );
        echo "</pre>";

--------------------------------------------------------------



Output:
--------------------------------------------------------------
aaArray
(
    [5] => 3
    [9] => 3
    [4] => 3
)

aaArray
(
)
--------------------------------------------------------------


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