From be01760302adcdd49ca9ff1efc64b91e7addc212 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sat, 31 Jul 2004 09:28:28 +0000 Subject: [PATCH] removed manual acl-settings for auto-created accounts, as suggested by Matthew Galgoci --- phpgwapi/inc/class.accounts_sql.inc.php | 27 +------------------------ 1 file changed, 1 insertion(+), 26 deletions(-) diff --git a/phpgwapi/inc/class.accounts_sql.inc.php b/phpgwapi/inc/class.accounts_sql.inc.php index b35031078e..1a3e371c63 100644 --- a/phpgwapi/inc/class.accounts_sql.inc.php +++ b/phpgwapi/inc/class.accounts_sql.inc.php @@ -391,32 +391,7 @@ $GLOBALS['phpgw']->preferences->add('email','address',$GLOBALS['auto_create_acct']['email']); $GLOBALS['phpgw']->preferences->save_repository(); } - if ($default_acls == False) - { - if ($default_group_id) - { - $this->db->query("insert into phpgw_acl (acl_appname, acl_location, acl_account, acl_rights) values('phpgw_group', " - . $default_group_id . ', ' . $accountid . ', 1)',__LINE__,__FILE__); - $this->db->query("insert into phpgw_acl (acl_appname, acl_location, acl_account, acl_rights) values('preferences', 'changepassword', " . $accountid . ', 1)',__LINE__,__FILE__); - } - else - { - // If they don't have a default group, they need some sort of permissions. - // This generally doesn't / shouldn't happen, but will (jengo) - $this->db->query("insert into phpgw_acl (acl_appname, acl_location, acl_account, acl_rights) values('preferences', 'changepassword', " . $accountid . ', 1)',__LINE__,__FILE__); - - foreach(Array( - 'addressbook', - 'calendar', - 'email', - 'infolog', - 'manual' - ) as $app) - { - $this->db->query("INSERT INTO phpgw_acl (acl_appname, acl_location, acl_account, acl_rights) VALUES ('" . $app . "', 'run', " . $accountid . ', 1)',__LINE__,__FILE__); - } - } - } + // commit the new account transaction $this->db->transaction_commit(); $GLOBALS['hook_values']['account_lid'] = $acct_info['account_lid'];