diff --git a/module/custom/control.php b/module/custom/control.php index 53555e6891..b07cd8005a 100644 --- a/module/custom/control.php +++ b/module/custom/control.php @@ -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§ion=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§ion=roleList"); diff --git a/module/doc/model.php b/module/doc/model.php index 1738e9934f..19b6e3e47f 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -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;