diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php
index e2ea94d18..abf9207fc 100644
--- a/views/bootstrap/class.Bootstrap.php
+++ b/views/bootstrap/class.Bootstrap.php
@@ -281,6 +281,7 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
*/
function __menuTasks($tasks) { /* {{{ */
$dms = $this->params['dms'];
+ $accessobject = $this->params['accessobject'];
$content = '';
// $content .= "
\n";
// $content .= " - \n";
@@ -330,7 +331,7 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
$content .= "
\n";
$content .= " \n";
}
- if ($this->check_access('MyDocuments')) {
+ if ($accessobject->check_view_access('MyDocuments')) {
$content .= " \n";
$content .= " ".getMLText("my_documents")."\n";
}
@@ -342,6 +343,7 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
function globalNavigation($folder=null) { /* {{{ */
$dms = $this->params['dms'];
+ $accessobject = $this->params['accessobject'];
echo "\n";
echo "
\n";
echo "
\n";
@@ -359,11 +361,11 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
echo "