mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 17:14:36 +01:00
Move creation of apps object up above app display vars
This commit is contained in:
parent
063db53e99
commit
774857aad3
@ -95,7 +95,7 @@
|
||||
|
||||
$allAccounts;
|
||||
$userGroups;
|
||||
|
||||
|
||||
$groups_select = '<select name="account_groups[]" multiple>';
|
||||
reset($allGroups);
|
||||
while (list($key,$value) = each($allGroups))
|
||||
@ -114,10 +114,14 @@
|
||||
$groups_select .= '</select>';
|
||||
$t->set_var('groups_select',$groups_select);
|
||||
|
||||
|
||||
// create list of available app
|
||||
|
||||
// create list of available apps
|
||||
$i = 0;
|
||||
|
||||
|
||||
$apps = CreateObject('phpgwapi.applications',intval($_account_id));
|
||||
$db_perms = $apps->read_account_specific();
|
||||
|
||||
@reset($phpgw_info['apps']);
|
||||
$availableApps = $phpgw_info['apps'];
|
||||
@asort($availableApps);
|
||||
@reset($availableApps);
|
||||
@ -132,11 +136,8 @@
|
||||
}
|
||||
|
||||
// create apps output
|
||||
$apps = CreateObject('phpgwapi.applications',intval($_account_id));
|
||||
$db_perms = $apps->read_account_specific();
|
||||
|
||||
@reset($db_perms);
|
||||
|
||||
|
||||
for ($i=0;$i<=count($perm_display);$i++)
|
||||
{
|
||||
$checked = '';
|
||||
@ -394,4 +395,4 @@
|
||||
$phpgw->common->hook_single('show_user_data', $app[0]);
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user