type === 'folder') { ($this->verifyAccessToItem)($file->parent_id, $shared); } // Check by single file permission if ($shared->type === 'file') { if ($shared->item_id !== $file->id) { abort(403); } } } }