mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-15 09:39:17 +00:00
add access check for MyDocuments, MyAccount, MyTransmittals
This commit is contained in:
parent
3e45e8cb10
commit
cf6f8b952d
|
@ -309,8 +309,10 @@ $(document).ready(function () {
|
|||
$content .= " </ul>\n";
|
||||
$content .= " </li>\n";
|
||||
}
|
||||
if ($this->check_access('MyDocuments')) {
|
||||
$content .= " <li class=\"divider\"></li>\n";
|
||||
$content .= " <li><a href=\"../out/out.MyDocuments.php?inProcess=1\">".getMLText("my_documents")."</a></li>\n";
|
||||
$content .= " <li><a href=\"../out/out.MyDocuments.php\">".getMLText("my_documents")."</a></li>\n";
|
||||
}
|
||||
$content .= " </ul>\n";
|
||||
// $content .= " </li>\n";
|
||||
// $content .= " </ul>\n";
|
||||
|
@ -336,8 +338,11 @@ $(document).ready(function () {
|
|||
echo " <ul class=\"dropdown-menu\" role=\"menu\">\n";
|
||||
if (!$this->params['user']->isGuest()) {
|
||||
$menuitems = array();
|
||||
$menuitems['my_documents'] = array('link'=>"../out/out.MyDocuments.php?inProcess=1", 'label'=>'my_documents');
|
||||
if ($this->check_access('MyDocuments'))
|
||||
$menuitems['my_documents'] = array('link'=>"../out/out.MyDocuments.php", 'label'=>'my_documents');
|
||||
if ($this->check_access('MyAccount'))
|
||||
$menuitems['my_account'] = array('link'=>"../out/out.MyAccount.php", 'label'=>'my_account');
|
||||
if ($this->check_access('TransmittalMgr'))
|
||||
$menuitems['my_transmittals'] = array('link'=>"../out/out.TransmittalMgr.php", 'label'=>'my_transmittals');
|
||||
$hookObjs = $this->getHookObjects('SeedDMS_View_Bootstrap');
|
||||
foreach($hookObjs as $hookObj) {
|
||||
|
@ -661,7 +666,7 @@ $(document).ready(function () {
|
|||
|
||||
private function myDocumentsNavigationBar() { /* {{{ */
|
||||
|
||||
echo "<id=\"first\"><a href=\"../out/out.MyDocuments.php?inProcess=1\" class=\"brand\">".getMLText("my_documents")."</a>\n";
|
||||
echo "<id=\"first\"><a href=\"../out/out.MyDocuments.php\" class=\"brand\">".getMLText("my_documents")."</a>\n";
|
||||
echo "<div class=\"nav-collapse col2\">\n";
|
||||
echo "<ul class=\"nav\">\n";
|
||||
|
||||
|
@ -2440,6 +2445,7 @@ mayscript>
|
|||
protected function printProtocol($latestContent, $type="") { /* {{{ */
|
||||
$dms = $this->params['dms'];
|
||||
$document = $latestContent->getDocument();
|
||||
$accessop = $this->params['accessobject'];
|
||||
?>
|
||||
<legend><?php printMLText($type.'_log'); ?></legend>
|
||||
<table class="table condensed">
|
||||
|
|
Loading…
Reference in New Issue
Block a user