Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| fe87df07fe | |||
| 4c843c69c2 |
@@ -1,5 +1,9 @@
|
|||||||
# IQParts/Content
|
# IQParts/Content
|
||||||
|
|
||||||
|
[](https://scrutinizer-ci.com/g/IQParts/content/?branch=master)
|
||||||
|
[](https://scrutinizer-ci.com/g/IQParts/content/?branch=master)
|
||||||
|
[](https://scrutinizer-ci.com/g/IQParts/content/build-status/master)
|
||||||
|
|
||||||
### Installation
|
### Installation
|
||||||
`composer require iqparts/content`
|
`composer require iqparts/content`
|
||||||
|
|
||||||
|
|||||||
@@ -82,7 +82,11 @@ final class File extends Item
|
|||||||
$parent = substr($this->path, 0, $parentSep);
|
$parent = substr($this->path, 0, $parentSep);
|
||||||
} else $parent = '/';
|
} else $parent = '/';
|
||||||
$this->parent = base64_encode($parent);
|
$this->parent = base64_encode($parent);
|
||||||
$this->isEditable = $editable[$extension] ?? false;
|
if ($editable[$extension] ?? false && $file->read() !== false) {
|
||||||
|
$this->isEditable = true;
|
||||||
|
} else {
|
||||||
|
$this->isEditable = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user