Show content if having accessible previlege

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6258 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
haneul 2009-05-04 05:07:08 +00:00
parent c92421c5ee
commit 1c35bae440

View file

@ -239,7 +239,7 @@
function getContentText($strlen = 0) {
if(!$this->document_srl) return;
if($this->isSecret() && !$this->isGranted()) return Context::getLang('msg_is_secret');
if($this->isSecret() && !$this->isGranted() && !$this->isAccessible()) return Context::getLang('msg_is_secret');
$_SESSION['accessible'][$this->document_srl] = true;
@ -253,7 +253,7 @@
function getContent($add_popup_menu = true, $add_content_info = true, $resource_realpath = false, $add_xe_content_class = true) {
if(!$this->document_srl) return;
if($this->isSecret() && !$this->isGranted()) return Context::getLang('msg_is_secret');
if($this->isSecret() && !$this->isGranted() && !$this->isAccessible()) return Context::getLang('msg_is_secret');
$_SESSION['accessible'][$this->document_srl] = true;