Skip to content

Commit

Permalink
fix: fix setMe contact controller
Browse files Browse the repository at this point in the history
  • Loading branch information
asbiin committed Apr 4, 2020
1 parent 4992679 commit 95a744f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

### Fixes:

* Fix setMe contact controller
* Fix carddav sync-collection reporting wrong syncToken


Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/SettingsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 95a744f

Please sign in to comment.