* [task#148406,done,0.2h] fix bug.
This commit is contained in:
@@ -1355,7 +1355,9 @@ class doc extends control
|
||||
$_SESSION["doc_{$doc->id}_nopriv"] = '';
|
||||
if(!$isApi && !$this->doc->checkPrivDoc($doc))
|
||||
{
|
||||
$errorMessage = empty($_SESSION["doc_{$doc->id}_nopriv"]) ? $this->lang->doc->accessDenied : $_SESSION["doc_{$doc->id}_nopriv"];
|
||||
$users = $this->loadModel('user')->getPairs('noclosed|noletter');
|
||||
$user = zget($users, $doc->addedBy);
|
||||
$errorMessage = empty($_SESSION["doc_{$doc->id}_nopriv"]) ? sprintf($this->lang->doc->cannotView, $user) : $_SESSION["doc_{$doc->id}_nopriv"];
|
||||
unset($_SESSION["doc_{$doc->id}_nopriv"]);
|
||||
return $this->sendError($errorMessage, inlink('index'));
|
||||
}
|
||||
|
||||
@@ -505,6 +505,7 @@ $lang->doc->errorEmptyProject = "Kein {$lang->executionCommon}. Kann n
|
||||
$lang->doc->errorEmptySpaceLib = "There is no document library in this space. It cannot be created. Please create a document library first";
|
||||
$lang->doc->errorMainSysLib = "Diese Bibliothek kann nicht gelöscht werden.";
|
||||
$lang->doc->accessDenied = "Zugriff verweigert!";
|
||||
$lang->doc->cannotView = "You do not have permission to view this document. Please contact the creator %s.";
|
||||
$lang->doc->versionNotFount = 'Existiert nicht in diesem Build.';
|
||||
$lang->doc->noDoc = 'Keine Dokumente. ';
|
||||
$lang->doc->noArticle = 'No articles.';
|
||||
|
||||
@@ -505,6 +505,7 @@ $lang->doc->errorEmptyProject = "No {$lang->executionCommon}. It canno
|
||||
$lang->doc->errorEmptySpaceLib = "There is no document library in this space. It cannot be created. Please create a document library first";
|
||||
$lang->doc->errorMainSysLib = "This library cannot be deleted.";
|
||||
$lang->doc->accessDenied = "Access is denied!";
|
||||
$lang->doc->cannotView = "You do not have permission to view this document. Please contact the creator %s.";
|
||||
$lang->doc->versionNotFount = 'It does not exist in this build.';
|
||||
$lang->doc->noDoc = 'No documents. ';
|
||||
$lang->doc->noArticle = 'No articles.';
|
||||
|
||||
@@ -505,6 +505,7 @@ $lang->doc->errorEmptyProject = "Aucun {$lang->executionCommon}. Il ne
|
||||
$lang->doc->errorEmptySpaceLib = "There is no document library in this space. It cannot be created. Please create a document library first";
|
||||
$lang->doc->errorMainSysLib = "Cette Bibliothèque ne peut pas être supprimée.";
|
||||
$lang->doc->accessDenied = "Access is denied !";
|
||||
$lang->doc->cannotView = "You do not have permission to view this document. Please contact the creator %s.";
|
||||
$lang->doc->versionNotFount = "N'existe pas dans ce build.";
|
||||
$lang->doc->noDoc = 'Aucun documents. ';
|
||||
$lang->doc->noArticle = 'No articles.';
|
||||
|
||||
@@ -505,6 +505,7 @@ $lang->doc->errorEmptyProject = "没有{$lang->executionCommon},无
|
||||
$lang->doc->errorEmptySpaceLib = "该空间下没有文档库,无法创建文档,请先创建文档库";
|
||||
$lang->doc->errorMainSysLib = "该系统文档库不能删除!";
|
||||
$lang->doc->accessDenied = "您没有权限访问!";
|
||||
$lang->doc->cannotView = "无查看权限,请联系创建者“%s”!";
|
||||
$lang->doc->versionNotFount = '该版本文档不存在';
|
||||
$lang->doc->noDoc = '暂时没有文档。';
|
||||
$lang->doc->noArticle = '暂时没有文章。';
|
||||
|
||||
Reference in New Issue
Block a user