This commit is contained in:
wangyidong
2015-07-28 13:28:36 +08:00
parent df78a73a78
commit 95edbb3914

View File

@@ -390,7 +390,7 @@ class doc extends control
/* Check priv when lib is product or project. */
$systemLib = ($doc->lib == 'project' or $doc->lib == 'product') ? $doc->lib : '';
if($systemLib and !$this->{$systemLib}->checkPriv($this->{$systemLib}->getById($doc->{$systemLib})))
if($systemLib and $doc->{$systemLib} and !$this->{$systemLib}->checkPriv($this->{$systemLib}->getById($doc->{$systemLib})))
{
echo(js::alert($this->lang->error->accessDenied));
die(js::locate('back'));