mirror of
https://github.com/netzbegruenung/groupfolders.git
synced 2024-05-04 10:23:41 +02:00
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:
parent
8e1cd100bf
commit
678027e57c
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue