mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 00:58:55 +01:00
removed hack necessary because of the wrong call of the contructor of the application class
This commit is contained in:
parent
2c300e8cd7
commit
ee9cf93b63
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user