mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:04:53 +01:00
Fix check for admin app enabled for show_currentusers to be set
This commit is contained in:
parent
665fee4ee7
commit
3cee7b2049
@ -25,9 +25,10 @@
|
|||||||
|
|
||||||
$acl = CreateObject('phpgwapi.acl',intval($owner));
|
$acl = CreateObject('phpgwapi.acl',intval($owner));
|
||||||
$acl_list = $acl->read_repository();
|
$acl_list = $acl->read_repository();
|
||||||
|
|
||||||
for ($k=0;$k<count($acl_list);$k++)
|
for ($k=0;$k<count($acl_list);$k++)
|
||||||
{
|
{
|
||||||
if ($apps_list[$k]['appname'] == 'admin')
|
if ($acl_list[$k]['appname'] == 'admin')
|
||||||
{
|
{
|
||||||
return True;
|
return True;
|
||||||
}
|
}
|
||||||
@ -36,6 +37,7 @@
|
|||||||
for ($k=0;$k<count($memberships);$k++)
|
for ($k=0;$k<count($memberships);$k++)
|
||||||
{
|
{
|
||||||
$apps_list = $acl->get_app_list_for_id('run',1,$memberships[$k]['account_id']);
|
$apps_list = $acl->get_app_list_for_id('run',1,$memberships[$k]['account_id']);
|
||||||
|
asort($apps_list);
|
||||||
|
|
||||||
if (is_array($apps_list))
|
if (is_array($apps_list))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user