add Dashboard to menu

This commit is contained in:
Uwe Steinmann 2023-05-02 17:08:52 +02:00
parent 8b7eae47d3
commit ed695a6e49
2 changed files with 4 additions and 0 deletions

View File

@ -347,6 +347,8 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
echo " <ul class=\"dropdown-menu\" role=\"menu\">\n";
if (!$this->params['user']->isGuest()) {
$menuitems = array();
if ($accessobject->check_view_access('Dashboard'))
$menuitems['dashboard'] = array('link'=>$this->params['settings']->_httpRoot."out/out.Dashboard.php", 'label'=>getMLText('dashboard'));
if ($accessobject->check_view_access('MyDocuments'))
$menuitems['my_documents'] = array('link'=>$this->params['settings']->_httpRoot."out/out.MyDocuments.php?inProcess=1", 'label'=>getMLText('my_documents'));
if ($accessobject->check_view_access('MyAccount'))

View File

@ -415,6 +415,8 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
echo " <div class=\"dropdown-menu dropdown-menu-right\" aria-labelledby=\"navbarMainUser\">\n";
if (!$this->params['user']->isGuest()) {
$menuitems = array();
if ($accessobject->check_view_access('Dashboard'))
$menuitems['dashboard'] = array('link'=>$this->params['settings']->_httpRoot."out/out.Dashboard.php", 'label'=>getMLText('dashboard'));
if ($accessobject->check_view_access('MyDocuments'))
$menuitems['my_documents'] = array('link'=>$this->params['settings']->_httpRoot."out/out.MyDocuments.php?inProcess=1", 'label'=>getMLText('my_documents'));
if ($accessobject->check_view_access('MyAccount'))