RE: checkRight function on the LiveUser object
"Jan Bolmeson" <[email protected]>
| Newsgroups | gmane.comp.php.pear.liveuser |
|---|---|
| Message-ID | <[email protected]> |
> Jan Bolmeson wrote: > > > Halleluja I now get the following obviously same result as you do. After > > stepping through almost all functions I saw that the SQL query in the > > Perm::Storage::Db.php :: readGroups() line 261 did not return any result > set > > due to the "is_active" field which was "Y" and it tried to match on "1". > > well that is to be expected. like i said you will need to change the > values of all boolean fields if you switch from MDB2 to DB on mysql. [Jan Bolmeson] I initially only changed in the user-tables. Didn't think of the "is_active" field in the group-table. > > Example 4 obviosuly works. Now the strange part - the above fixed one of > the > > original problems - the one that $LU->checkRight() didn't work for > > grouprights. Hence my application works for grouprights but not for > > userrights? And in example 4 both user and grouprights work. Any > suggestion? > > Not really .. > > Just to clarify once more. The example data is made for MDB[2] backends. > The admin API will however generate the data in the proper format as > long as you use the same config for both the admin and the client. So I > am still unsure if you really solved your original problem. > [Jan Bolmeson] But as it seems we do get the same result on example4. And the client returns correct data for grouprights as of now - which was one of the problems. The second remaining problem is to try to fix so that it works for "UserRights" as well. Just a quick question on feature I just noted: If a user is a member of group which in turn does have subgroups, should he automatically become a member of the subgroups as well? //jan