Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 82c0cf86 authored by AVINASH GUSAIN's avatar AVINASH GUSAIN
Browse files

check enabled

parent 1690f897
Loading
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -95,10 +95,12 @@ class UserController extends ApiController {

		$user->setEMailAddress($email);
		$user->setQuota($quota);
		if ($this->appManager->isEnabledForUser('terms_of_service')) {
			$tosSignatoryInserted = $this->signatoryService->tosSignatoryInsert($uid);
			if (!$tosSignatoryInserted) {
				return $this->getErrorResponse($response, 'error_setting_tos', 400);
			}
		}
		$recoveryEmailUpdated = $this->userService->setRecoveryEmail($uid, $recoveryEmail);
		if (!$recoveryEmailUpdated) {
			return $this->getErrorResponse($response, 'error_setting_recovery', 400);