diff options
author | Robin McCorkell <rmccorkell@owncloud.com> | 2015-08-20 22:43:46 +0100 |
---|---|---|
committer | Robin McCorkell <rmccorkell@owncloud.com> | 2015-08-20 22:43:46 +0100 |
commit | 99b54e102d5bb4e83d46b748a6952f8d4c53c5d6 (patch) | |
tree | cd04eb4c62a0356ea174d28cfd6d792db8215866 /apps | |
parent | 0451cc0060d406ff16343f5b78f684f54ec5d44d (diff) | |
download | nextcloud-server-99b54e102d5bb4e83d46b748a6952f8d4c53c5d6.tar.gz nextcloud-server-99b54e102d5bb4e83d46b748a6952f8d4c53c5d6.zip |
Prevent shares being added to oc_storages via availability
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/lib/sharedstorage.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/sharedstorage.php b/apps/files_sharing/lib/sharedstorage.php index 66803db1425..c7529df0617 100644 --- a/apps/files_sharing/lib/sharedstorage.php +++ b/apps/files_sharing/lib/sharedstorage.php @@ -662,4 +662,22 @@ class Shared extends \OC\Files\Storage\Common implements ISharedStorage { list($targetStorage, $targetInternalPath) = $this->resolvePath($path); $targetStorage->changeLock($targetInternalPath, $type, $provider); } + + /** + * @return array [ available, last_checked ] + */ + public function getAvailability() { + // shares do not participate in availability logic + return [ + 'available' => true, + 'last_checked' => 0 + ]; + } + + /** + * @param bool $available + */ + public function setAvailability($available) { + // shares do not participate in availability logic + } } |