mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-23 05:41:02 +01:00
* Password: fixed not working check, if user has right to change password, causing password link in topmenu to be displayed when not in preferences app
This commit is contained in:
parent
2674b43532
commit
5100dfcc71
@ -934,10 +934,10 @@ abstract class egw_framework
|
|||||||
{
|
{
|
||||||
$this->_add_topmenu_item($apps['preferences']);
|
$this->_add_topmenu_item($apps['preferences']);
|
||||||
}
|
}
|
||||||
// allways display pasword in topmenu
|
// allways display password in topmenu, if user has rights to change it
|
||||||
if((($pw_app = $GLOBALS['egw_info']['user']['apps']['preferences']) ||
|
if((($pw_app = $GLOBALS['egw_info']['user']['apps']['preferences']) ||
|
||||||
($pw_app = $GLOBALS['egw_info']['user']['apps']['password'])) &&
|
($pw_app = $GLOBALS['egw_info']['user']['apps']['password'])) &&
|
||||||
!$GLOBALS['egw']->acl->check('nopasswordchange', 1))
|
!$GLOBALS['egw']->acl->check('nopasswordchange', 1, 'preferences'))
|
||||||
{
|
{
|
||||||
$this->_add_topmenu_item(array(
|
$this->_add_topmenu_item(array(
|
||||||
'name' => $pw_app['name'] == 'password' ? 'about' : $pw_app['name'],
|
'name' => $pw_app['name'] == 'password' ? 'about' : $pw_app['name'],
|
||||||
|
Loading…
Reference in New Issue
Block a user