[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] [19037] fix the account object stuff, use a new appli
From: |
Caeies |
Subject: |
[Phpgroupware-cvs] [19037] fix the account object stuff, use a new application object with id -1 for new users ( avoid to grant the current user applications) |
Date: |
Wed, 21 Jan 2009 18:36:54 +0000 |
Revision: 19037
http://svn.sv.gnu.org/viewvc/?view=rev&root=phpgroupware&revision=19037
Author: Caeies
Date: 2009-01-21 18:36:54 +0000 (Wed, 21 Jan 2009)
Log Message:
-----------
fix the account object stuff, use a new application object with id -1 for new
users (avoid to grant the current user applications)
Modified Paths:
--------------
core/trunk/admin/inc/class.uiaccounts.inc.php
Modified: core/trunk/admin/inc/class.uiaccounts.inc.php
===================================================================
--- core/trunk/admin/inc/class.uiaccounts.inc.php 2009-01-21 18:35:28 UTC
(rev 19036)
+++ core/trunk/admin/inc/class.uiaccounts.inc.php 2009-01-21 18:36:54 UTC
(rev 19037)
@@ -902,7 +902,7 @@
unset($group_ids);
/* create list of available apps */
- $apps = createObject('phpgwapi.applications',
$account_id);
+ $apps = createObject('phpgwapi.applications',
$account_id ? $account_id : -1);
$db_perms = $apps->read_account_specific();
$available_apps = $GLOBALS['phpgw_info']['apps'];
@@ -1206,12 +1206,12 @@
$account_id = phpgw::get_var('account_id',
'int');
foreach ( $accounts_list as $account )
{
- if ( (int) $account['account_id'] !=
$account_id )
+ if ( (int) $account->id != $account_id )
{
$alist[] = array
(
- 'account_id' =>
$account['account_id'],
- 'account_name' =>
$accounts->id2name($account['account_id'])
+ 'account_id' =>
$account->id,
+ 'account_name' =>
$accounts->id2name($account->id)
);
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] [19037] fix the account object stuff, use a new application object with id -1 for new users ( avoid to grant the current user applications),
Caeies <=