* [bug] remove doc space priv.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user