diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php
index 1083a1592..c327a9f59 100644
--- a/views/bootstrap/class.Bootstrap.php
+++ b/views/bootstrap/class.Bootstrap.php
@@ -2294,6 +2294,21 @@ $(function() {
return '';
} /* }}} */
+ function printAccessButton($object, $return=false) { /* {{{ */
+ $content = '';
+ $objid = $object->getId();
+ if($object->isType('document')) {
+ $content .= '';
+ } elseif($object->isType('folder')) {
+ $content .= '';
+ }
+ if($return)
+ return $content;
+ else
+ echo $content;
+ return '';
+ } /* }}} */
+
/**
* Output left-arrow with link which takes over a number of ids into
* a select box.
@@ -2718,6 +2733,9 @@ $('body').on('click', '[id^=\"table-row-folder\"] td:nth-child(2)', function(ev)
if($document->getAccessMode($user) >= M_READWRITE) {
$content .= $this->printLockButton($document, 'splash_document_locked', 'splash_document_unlocked', true);
}
+ if($document->getAccessMode($user) >= M_READWRITE) {
+ $content .= $this->printAccessButton($document, true);
+ }
if($enableClipboard) {
$content .= '';
}
@@ -2847,6 +2865,9 @@ $('body').on('click', '[id^=\"table-row-folder\"] td:nth-child(2)', function(ev)
} else {
$content .= '';
}
+ if($subFolderAccessMode >= M_READWRITE) {
+ $content .= $this->printAccessButton($subFolder, true);
+ }
if($enableClipboard) {
$content .= '';
}