[turba] turba permissions....

Amith Varghese amith at xalan.com
Tue Feb 25 18:55:54 PST 2003


> I'm running CVS HEAD and I have a problem with the checkPermissions function
> in
> lib/Turba.php.  The problem is that I'm trying to view an entry in an
> addressbook and I get "You do not have permission to view this object".  This
> addressbook reads the entries off the LDAP server.  This particular
> addressbook
> is a personal addressbook (where the DN for the addressbook is constructed
> using
> Auth::getAuth).
> 
> I've traced the error to this block of code:
> 
> case _PERMS_READ:
>                 if ($in->source->public) {
>                     return false;
>                 } elseif ($in->hasValue('__owner') &&
>                           $in->getValue('__owner') == $userID) {
>                     return true;
>                 }
>                 break;
> 
> I tried printing out __owner and it came back blank.  How is this value set
> using an LDAP backend?

I fixed this by adding the following

admin => array(Auth::getAuth()),

and this fixed the problem.

Amith



More information about the turba mailing list