phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] CVS: admin/inc class.soaccounts.inc.php,1.8,1.8.2.1


From: Lars Kneschke <address@hidden>
Subject: [Phpgroupware-cvs] CVS: admin/inc class.soaccounts.inc.php,1.8,1.8.2.1
Date: Wed, 12 Mar 2003 14:00:52 -0500

Update of /cvsroot/phpgroupware/admin/inc
In directory subversions:/tmp/cvs-serv7764

Modified Files:
      Tag: Version-0_9_14-branch
        class.soaccounts.inc.php 
Log Message:
new users did get apps added, also if non were selected

now not anymore


Index: class.soaccounts.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/admin/inc/class.soaccounts.inc.php,v
retrieving revision 1.8
retrieving revision 1.8.2.1
diff -C2 -r1.8 -r1.8.2.1
*** class.soaccounts.inc.php    2 Jan 2002 14:33:02 -0000       1.8
--- class.soaccounts.inc.php    12 Mar 2003 19:00:50 -0000      1.8.2.1
***************
*** 37,44 ****
  
                        $userData['account_id'] = 
$GLOBALS['phpgw']->accounts->name2id($userData['account_lid']);
  
!                       $apps = 
CreateObject('phpgwapi.applications',array($userData['account_id'],'u'));
                        $apps->read_installed_apps();
- 
                        // Read Group Apps
                        if ($userData['account_groups'])
--- 37,45 ----
  
                        $userData['account_id'] = 
$GLOBALS['phpgw']->accounts->name2id($userData['account_lid']);
+                       
+                       print "New account_id".$userData['account_id']."<br>";
  
!                       $apps = 
CreateObject('phpgwapi.applications',$userData['account_id']);
                        $apps->read_installed_apps();
                        // Read Group Apps
                        if ($userData['account_groups'])
***************
*** 63,67 ****
                        $apps->account_type = 'u';
                        $apps->account_id = $userData['account_id'];
!                       $apps->account_apps = Array(Array());
  
                        if ($userData['account_permissions'])
--- 64,68 ----
                        $apps->account_type = 'u';
                        $apps->account_id = $userData['account_id'];
!                       $apps->data = Array(Array());
  
                        if ($userData['account_permissions'])
***************
*** 94,111 ****
                        }
  
- /*                    if ($apps_after)
-                       {
-                               $GLOBALS['pref'] = 
CreateObject('phpgwapi.preferences',$userData['account_id']);
-                               
$GLOBALS['phpgw']->hooks->single('add_def_pref','admin');
-                               while ($apps = each($apps_after))
-                               {
-                                       if (strcasecmp ($apps[0], 'admin') != 0)
-                                       {
-                                               
$GLOBALS['phpgw']->hooks->single('add_def_pref', $apps[1]);
-                                       }
-                               }
-                               $GLOBALS['pref']->save_repository(False);
-                       } */
- 
                        $apps->account_apps = array(array());
                        $apps_after = array(array());
--- 95,98 ----
***************
*** 113,123 ****
                        $GLOBALS['phpgw']->db->unlock();
  
- /*
-                       // start inlcuding other admin tools
-                       while($app = each($apps_after))
-                       {
-                               
$GLOBALS['phpgw']->hooks->single('add_user_data', $value);
-                       }
- */
                        return $userData['account_id'];
                }
--- 100,103 ----





reply via email to

[Prev in Thread] Current Thread [Next in Thread]