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

github.com/ONLYOFFICE/onlyoffice-nextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntipkin-A <Artem.Antipkin@onlyoffice.com>2022-09-27 12:10:25 +0300
committerAntipkin-A <Artem.Antipkin@onlyoffice.com>2022-09-27 12:10:25 +0300
commit0169021c8a4d02b16b3b3ab6a98b64973b0ce95c (patch)
tree280e84e261872cd53822a9a159466fe87808a000
parent61121e80258fd6534f90114c22256c9c3814b48d (diff)
don't check allGroups watermark for anonymousfeature/watermark-fix
-rw-r--r--controller/editorapicontroller.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/controller/editorapicontroller.php b/controller/editorapicontroller.php
index ba5f333..2424ed8 100644
--- a/controller/editorapicontroller.php
+++ b/controller/editorapicontroller.php
@@ -856,7 +856,8 @@ class EditorApiController extends OCSController {
return $watermarkText;
}
}
- if ($watermarkSettings["allGroups"]) {
+ if ($watermarkSettings["allGroups"]
+ && $userId !== null) {
$groups = $watermarkSettings["allGroupsList"];
foreach ($groups as $group) {
if (\OC::$server->getGroupManager()->isInGroup($userId, $group)) {