[imp] imp-cvs && turba && Auth::getAuth method

Edwin Chiu Edwin.Chiu@e-wares.com
Sun, 12 Aug 2001 14:03:38 -0400


I dug into the archives deeper and found this relatively old patch
(from March)...

http://marc.theaimsgroup.com/?l=imp&m=98763141325867&w=2

For horde/lib/Auth.php:

--- Auth.php	Thu Apr 19 00:00:37 2001
+++ XAuth.php	Wed Apr 18 23:51:38 2001
@@ -174,6 +174,11 @@
      */
     function getAuth($realm = null)
     {
+	if (isset($GLOBALS['HTTP_SESSION_VARS']['imp']['user'])){
+		return $GLOBALS['HTTP_SESSION_VARS']['imp']['user'];
+	} else {
+		return false;
+	}
         if (!empty($realm)) {
             if (isset($GLOBALS['HTTP_SESSION_VARS']['__auth'][$realm])) {
                 if
(!empty($GLOBALS['HTTP_SESSION_VARS']['__auth'][$realm]['authenticated']) &&


Edwin Chiu wrote:
> 
> Hi,
> 
> I can't seem to get turba to save new contacts as non-public or "private"
> contacts. I'm guessing the problems is that the "owner_id" field in the
> record never gets added, since Auth::getAuth() returns false.