* [bug] remove doc space priv.

This commit is contained in:
sunguangming
2024-08-13 11:10:08 +08:00
committed by 王怡栋
parent 43cf9c542b
commit 5ccfac638a
2 changed files with 2 additions and 6 deletions
+1 -6
View File
@@ -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;