[turba] turba permissions....
Amith Varghese
amith at xalan.com
Mon Feb 24 13:16:46 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?
Thanks
Amith
More information about the turba
mailing list