Skip to content

Commit 901762a

Browse files
committed
fixup! fix(SecureView): hide disfunctional *download* files action
1 parent 59c26bf commit 901762a

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

lib/Listener/AddSabrePluginListener.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
use OCP\EventDispatcher\IEventListener;
1515
use Psr\Container\ContainerInterface;
1616

17+
/** @template-implements IEventListener<Event|SabrePluginAddEvent|BeforeSabrePubliclyLoadedEvent> */
1718
class AddSabrePluginListener implements IEventListener {
1819

1920
public function __construct(

tests/stub.phpstub

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ namespace OC\Hooks {
3232
}
3333
}
3434

35+
namespace OCA\DAV\Events {
36+
class SabrePluginAddEvent {}
37+
}
38+
3539
namespace OCA\Federation {
3640
class TrustedServers {
3741
public function getServers() {
@@ -147,3 +151,30 @@ namespace OCA\Talk\Events {
147151
}
148152
}
149153
}
154+
155+
namespace use Sabre\DAV {
156+
interface INode {}
157+
158+
class PropFind {
159+
/**
160+
* @return string[]
161+
*/
162+
public function getRequestedProperties(): array {
163+
return [];
164+
}
165+
166+
public function get(string $key) {
167+
return null;
168+
}
169+
170+
public function set(string $key, $value) {}
171+
172+
public function handle(string $key, $valueOrCallable): void {}
173+
}
174+
175+
class Server {
176+
public function on(string $eventName, callable $callable): void {}
177+
}
178+
179+
class ServerPlugin {}
180+
}

0 commit comments

Comments
 (0)