mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 10:10:49 -04:00
Prevent shares being added to oc_storages via availability
This commit is contained in:
parent
0451cc0060
commit
99b54e102d
1 changed files with 18 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue