* Fix doc bug.

This commit is contained in:
Yagami
2020-09-25 13:27:46 +08:00
parent 3b31984c72
commit 662c7f4545
2 changed files with 2 additions and 3 deletions
+2 -2
View File
@@ -403,7 +403,7 @@ class custom extends control
$this->custom->setURAndSR('waterfall');
}
if($type == 'user')
if($type == 'user' and isset($_POST['keys']))
{
$lang = $_POST['lang'];
$oldCustoms = $this->custom->getItems("lang=$lang&module=user&section=roleList");
@@ -490,7 +490,7 @@ class custom extends control
$this->custom->setURAndSR('scrum');
}
if($type == 'user')
if($type == 'user' && isset($_POST['keys']))
{
$lang = $_POST['lang'];
$oldCustoms = $this->custom->getItems("lang=$lang&module=user&section=roleList");
-1
View File
@@ -921,7 +921,6 @@ class docModel extends model
static $libs;
if($libs === null) $libs = $this->getLibs('all', 'notdoc');
if(isset($libs[$object->lib]) and isset($extraDocLibs[$object->lib])) unset($extraDocLibs[$object->lib]);
if(!isset($libs[$object->lib]) and !isset($extraDocLibs[$object->lib])) return false;
if($object->acl == 'open' and !isset($extraDocLibs[$object->lib])) return true;
if($object->acl == 'public' and !isset($extraDocLibs[$object->lib])) return true;