Skip to content

Commit

Permalink
Support nc 27
Browse files Browse the repository at this point in the history
Signed-off-by: greta <[email protected]>
  • Loading branch information
GretaD committed Oct 22, 2024
1 parent 5f2cf96 commit c479265
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ This product includes GeoLite2 data created by MaxMind, available from [maxmind.
<screenshot>https://github.com/nextcloud/terms_of_service/raw/master/docs/notification-and-settings.png</screenshot>

<dependencies>
<nextcloud min-version="28" max-version="31" />
<nextcloud min-version="27" max-version="31" />
</dependencies>

<repair-steps>
Expand Down
14 changes: 7 additions & 7 deletions lib/Filesystem/StorageWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,47 +24,47 @@ public function __construct($parameters) {
$this->helper = new Helper($parameters['checker'], $this->mountPoint);
}

public function isCreatable(string $path): bool {
public function isCreatable($path): bool {
if(!$this->helper->verifyAccess($path)) {
return false;
}

return $this->storage->isCreatable($path);
}

public function isUpdatable(string $path): bool {
public function isUpdatable($path): bool {
if(!$this->helper->verifyAccess($path)) {
return false;
}

return $this->storage->isUpdatable($path);
}

public function isDeletable(string $path): bool {
public function isDeletable($path): bool {
if(!$this->helper->verifyAccess($path)) {
return false;
}

return $this->storage->isDeletable($path);
}

public function isReadable(string $path): bool {
public function isReadable($path): bool {
if(!$this->helper->verifyAccess($path)) {
return false;
}

return $this->storage->isReadable($path);
}

public function isSharable(string $path): bool {
public function isSharable($path): bool {
if(!$this->helper->verifyAccess($path)) {
return false;
}

return $this->storage->isReadable($path);
}

public function fopen(string $path, string $mode) {
public function fopen($path, $mode) {
if ($this->helper->verifyAccess($path)) {
return $this->storage->fopen($path, $mode);
}
Expand All @@ -79,7 +79,7 @@ public function fopen(string $path, string $mode) {
* @param \OC\Files\Storage\Storage (optional) the storage to pass to the cache
* @return \OC\Files\Cache\Cache
*/
public function getCache(string $path = '', ?IStorage $storage = null): ICache {
public function getCache($path = '', $storage = null): ICache {
if (!$storage) {
$storage = $this;
}
Expand Down

0 comments on commit c479265

Please sign in to comment.