diff options
author | dartcafe <github@dartcafe.de> | 2022-01-27 20:39:21 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2022-01-27 20:39:21 +0300 |
commit | 58134a8a28616cc7aa619f029b3c3d31b7645f00 (patch) | |
tree | 9ca12ee7da6c60b4d1095d3eb9eacd46d85a53f6 /lib | |
parent | f7bc99fe43fefdc0069e5bc69c9dbd24c99eea44 (diff) |
fix write settings
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Controller/PreferencesController.php | 2 |
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) { |