diff --git a/presentation/lookAndFeel/knowledgeTree/documentmanagement/browseUI.inc b/presentation/lookAndFeel/knowledgeTree/documentmanagement/browseUI.inc index b78d219..1cd1023 100644 --- a/presentation/lookAndFeel/knowledgeTree/documentmanagement/browseUI.inc +++ b/presentation/lookAndFeel/knowledgeTree/documentmanagement/browseUI.inc @@ -91,7 +91,7 @@ function renderCategoryResults($aResults) { } else { // else the first entry is the category name, so display the documents in the category // with full paths - $sToRender .= renderDocumentList($aResults["documents"], "This category contains no documents", true); + $sToRender .= renderDocumentList($aResults, "This category contains no documents", "You don't have access to the documents in this category", true); } return $sToRender; } @@ -137,7 +137,7 @@ function renderDocumentTypeResults($aResults) { } else { // else the first entry is the document type name, so display the documents in the document type // with full paths - $sToRender .= renderDocumentList($aResults["documents"], "This document type contains no documents", true); + $sToRender .= renderDocumentList($aResults, "This document type contains no documents", "You don't have access to the documents in this document type", true); } return $sToRender; } @@ -157,19 +157,19 @@ function renderFolderResults($aResults) { } $sToRender .= " "; - $sToRender .= "" . renderDocumentList($aResults, "This folder contains no documents") . "\n"; + $sToRender .= "" . renderDocumentList($aResults, "This folder contains no documents", "You don't have access to the documents in this folder") . "\n"; return $sToRender; } -function renderDocumentList($aResults, $sNoDocumentsMessage, $bDisplayFullPath = false) { +function renderDocumentList($aResults, $sNoDocumentsMessage, $sNoPermissionMessage, $bDisplayFullPath = false) { // loop through the files and display links if (count($aResults["documents"]) > 0) { for ($i=0; $i" . displayDocumentLink($aResults["documents"][$i], $bDisplayFullPath) . ""; } } else if ($aResults["accessDenied"]) { - $sToRender .= "You don't have access to the documents in this folder"; + $sToRender .= "$sNoPermissionMessage"; } else { $sToRender .= "$sNoDocumentsMessage"; }