removed hack necessary because of the wrong call of the contructor of the application class

This commit is contained in:
Ralf Becker 2005-03-30 14:46:37 +00:00
parent 2c300e8cd7
commit ee9cf93b63

View File

@ -814,16 +814,14 @@
),False,True); // called for every app now, not only enabled ones)
}
$apps = CreateObject('phpgwapi.applications',array((int)$_userData['account_id'],'u'));
$apps->account_id = $_userData['account_id'];
$apps = CreateObject('phpgwapi.applications',(int)$_userData['account_id']);
if ($_userData['account_permissions'])
{
while($app = each($_userData['account_permissions']))
foreach($_userData['account_permissions'] as $app => $enabled)
{
if($app[1])
if($enabled)
{
$apps->add($app[0]);
$apps->add($app);
}
}
}