Partially revert #584

Bug reported in https://www.xetown.com/qna/375598
This commit is contained in:
Kijin Sung 2016-09-23 23:30:36 +09:00
parent 6dd776bd15
commit 54bbc36e73
2 changed files with 5 additions and 14 deletions

View file

@ -162,16 +162,16 @@ class documentItem extends Object
function isGranted()
{
if ($this->grant_cache !== null)
{
return $this->grant_cache;
}
if ($_SESSION['own_document'][$this->document_srl])
{
return $this->grant_cache = true;
}
if ($this->grant_cache !== null)
{
return $this->grant_cache;
}
$logged_info = Context::get('logged_info');
if (!$logged_info->member_srl)
{