* Fix doc bug.
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user