Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Controller/DocumentAPIController.php6
-rw-r--r--lib/TemplateManager.php4
2 files changed, 8 insertions, 2 deletions
diff --git a/lib/Controller/DocumentAPIController.php b/lib/Controller/DocumentAPIController.php
index 86cb2081..dc155446 100644
--- a/lib/Controller/DocumentAPIController.php
+++ b/lib/Controller/DocumentAPIController.php
@@ -59,6 +59,12 @@ class DocumentAPIController extends \OCP\AppFramework\OCSController {
}
/**
+ * Create a file from a public share link of a folder
+ *
+ * As the server template API for file creation is not available there, we need a dedicated API
+ * in order to properly create files as public page visitors. This is being called in the new file
+ * actions in src/view/NewFileMenu.js
+ *
* @NoAdminRequired
* @PublicPage
*/
diff --git a/lib/TemplateManager.php b/lib/TemplateManager.php
index 803f8be9..f32b31ed 100644
--- a/lib/TemplateManager.php
+++ b/lib/TemplateManager.php
@@ -107,7 +107,7 @@ class TemplateManager {
];
public function __construct(
- $userId,
+ ?string $userId,
IConfig $config,
IAppData $appData,
IURLGenerator $urlGenerator,
@@ -144,7 +144,7 @@ class TemplateManager {
}
}
- public function setUserId($userId) {
+ public function setUserId(?string $userId): void {
$this->userId = $userId;
}