diff --git a/module/doc/model.php b/module/doc/model.php index f256282eb5..edf3f49f64 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -242,6 +242,7 @@ class docModel extends model $space = clone $lib; $space->name = $space->spaceName; $space->parent = 0; + $space->acl = 'open'; $this->dao->insert(TABLE_DOCLIB)->data($space, 'spaceName')->autoCheck()->exec(); $lib->parent = $this->dao->lastInsertID(); @@ -1243,12 +1244,6 @@ class docModel extends model { if(empty($object)) return false; - if(!empty($object->parent)) - { - $parent = $this->getLibByID($object->parent); - return $this->checkPrivLib($parent); - } - /* Only the creator can access the document library under my space. */ if($object->type == 'mine' && $object->addedBy == $this->app->user->account) return true; if($this->app->user->admin && $object->type != 'mine') return true; diff --git a/module/doc/ui/editlib.html.php b/module/doc/ui/editlib.html.php index 212950f273..209e0e7767 100644 --- a/module/doc/ui/editlib.html.php +++ b/module/doc/ui/editlib.html.php @@ -69,6 +69,7 @@ formPanel ), formRow ( + ($lib->type == 'custom' && $lib->parent == 0) ? setClass('hidden') : null, setID('aclBox'), formGroup (