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

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authordartcafe <github@dartcafe.de>2022-01-27 20:39:21 +0300
committerdartcafe <github@dartcafe.de>2022-01-27 20:39:21 +0300
commit58134a8a28616cc7aa619f029b3c3d31b7645f00 (patch)
tree9ca12ee7da6c60b4d1095d3eb9eacd46d85a53f6 /lib
parentf7bc99fe43fefdc0069e5bc69c9dbd24c99eea44 (diff)
fix write settings
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/Controller/PreferencesController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Controller/PreferencesController.php b/lib/Controller/PreferencesController.php
index 1da027d5..5d26c41a 100644
--- a/lib/Controller/PreferencesController.php
+++ b/lib/Controller/PreferencesController.php
@@ -74,7 +74,7 @@ class PreferencesController extends Controller {
* @NoAdminRequired
*/
public function write(array $settings): DataResponse {
- if ($this->userSession->isLoggedIn()) {
+ if (!$this->userSession->isLoggedIn()) {
return new DataResponse([], Http::STATUS_OK);
}
return $this->response(function () use ($settings) {