|
|
|
@ -217,7 +217,7 @@ class Server {
|
|
|
|
$this->server->addPlugin(new SearchPlugin($lazySearchBackend));
|
|
|
|
$this->server->addPlugin(new SearchPlugin($lazySearchBackend));
|
|
|
|
|
|
|
|
|
|
|
|
// wait with registering these until auth is handled and the filesystem is setup
|
|
|
|
// wait with registering these until auth is handled and the filesystem is setup
|
|
|
|
$this->server->on('beforeMethod', function () use ($root, $lazySearchBackend) {
|
|
|
|
$this->server->on('beforeMethod:*', function () use ($root, $lazySearchBackend) {
|
|
|
|
// custom properties plugin must be the last one
|
|
|
|
// custom properties plugin must be the last one
|
|
|
|
$userSession = \OC::$server->getUserSession();
|
|
|
|
$userSession = \OC::$server->getUserSession();
|
|
|
|
$user = $userSession->getUser();
|
|
|
|
$user = $userSession->getUser();
|
|
|
|
|