mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:20 +01:00
Add my account to Top Menu, only show when user is allowed to maintain his own data (fixed indention and warning)
This commit is contained in:
parent
e5b789693e
commit
ebfefbf070
@ -1307,10 +1307,10 @@ abstract class Framework extends Framework\Extra
|
||||
'title' => 'Access',
|
||||
'hook' => 'acl_rights',
|
||||
),
|
||||
'useraccount' => array(
|
||||
'title' => 'My Account',
|
||||
'hook' => 'user_account',
|
||||
),
|
||||
'useraccount' => array(
|
||||
'title' => 'My Account',
|
||||
'hook' => 'user_account',
|
||||
),
|
||||
'cats' => array(
|
||||
'title' => 'Categories',
|
||||
'hook' => 'categories',
|
||||
@ -1367,18 +1367,18 @@ abstract class Framework extends Framework\Extra
|
||||
));
|
||||
}
|
||||
break;
|
||||
case 'useraccount':
|
||||
$config = Config::read('phpgwapi');
|
||||
if ($config['own_account_acl'] && is_array($config['own_account_acl']) && count($config['own_account_acl'])>0){
|
||||
$this->_add_topmenu_item(array(
|
||||
'id' => $type,
|
||||
'name' => 'useraccount',
|
||||
'title' => lang($types[$type]['title']),
|
||||
'url' => "javascript:egw.open_link('".
|
||||
self::link('/index.php?menuaction=addressbook.addressbook_ui.edit&account_id='.$GLOBALS['egw_info']['user']['account_id'])."','_blank','850x580')",
|
||||
));
|
||||
}
|
||||
break;
|
||||
case 'useraccount':
|
||||
$config = Config::read('phpgwapi');
|
||||
if (!empty($config['own_account_acl']) && is_array($config['own_account_acl']) && count($config['own_account_acl'])>0)
|
||||
{
|
||||
$this->_add_topmenu_item(array(
|
||||
'id' => $type,
|
||||
'name' => 'useraccount',
|
||||
'title' => lang($types[$type]['title']),
|
||||
'url' => "javascript:egw.open_link('".self::link('/index.php?menuaction=addressbook.addressbook_ui.edit&account_id='.$GLOBALS['egw_info']['user']['account_id'])."','_blank','850x580')",
|
||||
));
|
||||
}
|
||||
break;
|
||||
default:
|
||||
$this->_add_topmenu_item(array(
|
||||
'id' => $type,
|
||||
|
Loading…
Reference in New Issue
Block a user