fix return value from get_contents for acl wrapper

fixes #412, fixes #416

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2019-05-06 18:32:42 +02:00
parent 8e1cd100bf
commit 678027e57c

View file

@ -234,8 +234,10 @@ class ACLStorageWrapper extends Wrapper {
}
public function file_get_contents($path) {
return $this->checkPermissions($path, Constants::PERMISSION_READ) &&
parent::file_get_contents($path);
if (!$this->checkPermissions($path, Constants::PERMISSION_READ)) {
return false;
}
return parent::file_get_contents($path);
}
public function getMimeType($path) {