From 95a744f681ce9f911de1fb2f6202f8ef820204a8 Mon Sep 17 00:00:00 2001 From: Alexis Saettler Date: Sat, 4 Apr 2020 15:14:20 +0200 Subject: [PATCH] fix: fix setMe contact controller --- CHANGELOG.md | 1 + app/Http/Controllers/SettingsController.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8161c312f57..69ac3319fca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ ### Fixes: +* Fix setMe contact controller * Fix carddav sync-collection reporting wrong syncToken diff --git a/app/Http/Controllers/SettingsController.php b/app/Http/Controllers/SettingsController.php index c0f85c68a9d..27724f6f64d 100644 --- a/app/Http/Controllers/SettingsController.php +++ b/app/Http/Controllers/SettingsController.php @@ -112,7 +112,7 @@ public function save(SettingsRequest $request) ]); } - if (! $user->account->hasLimitations() && $request->input('me_contact_id')) { + if (! AccountHelper::hasLimitations($user->account) && $request->input('me_contact_id')) { $user->me_contact_id = $request->input('me_contact_id'); $user->save(); }