From 839ddaa3547bb0042b6225edf2df7bff1831cdd5 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Wed, 21 Sep 2022 17:44:32 +0200 Subject: feat: rename users to account or person Replace translated text in most locations Signed-off-by: Vincent Petry --- apps/provisioning_api/lib/Controller/AppConfigController.php | 2 +- apps/provisioning_api/lib/Controller/VerificationController.php | 4 ++-- .../lib/Middleware/Exceptions/NotSubAdminException.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'apps/provisioning_api/lib') diff --git a/apps/provisioning_api/lib/Controller/AppConfigController.php b/apps/provisioning_api/lib/Controller/AppConfigController.php index ea862550e2d..7ca5e76962f 100644 --- a/apps/provisioning_api/lib/Controller/AppConfigController.php +++ b/apps/provisioning_api/lib/Controller/AppConfigController.php @@ -133,7 +133,7 @@ class AppConfigController extends OCSController { } if (!$this->isAllowedToChangedKey($user, $app, $key)) { - throw new NotAdminException($this->l10n->t('Logged in user must be an administrator or have authorization to edit this setting.')); + throw new NotAdminException($this->l10n->t('Logged in account must be an administrator or have authorization to edit this setting.')); } try { diff --git a/apps/provisioning_api/lib/Controller/VerificationController.php b/apps/provisioning_api/lib/Controller/VerificationController.php index 6b2443796fc..e184dc13fc6 100644 --- a/apps/provisioning_api/lib/Controller/VerificationController.php +++ b/apps/provisioning_api/lib/Controller/VerificationController.php @@ -83,7 +83,7 @@ class VerificationController extends Controller { public function showVerifyMail(string $token, string $userId, string $key) { if ($this->userSession->getUser()->getUID() !== $userId) { // not a public page, hence getUser() must return an IUser - throw new InvalidArgumentException('Logged in user is not mail address owner'); + throw new InvalidArgumentException('Logged in account is not mail address owner'); } $email = $this->crypto->decrypt($key); @@ -102,7 +102,7 @@ class VerificationController extends Controller { public function verifyMail(string $token, string $userId, string $key) { try { if ($this->userSession->getUser()->getUID() !== $userId) { - throw new InvalidArgumentException('Logged in user is not mail address owner'); + throw new InvalidArgumentException('Logged in account is not mail address owner'); } $email = $this->crypto->decrypt($key); $ref = \substr(hash('sha256', $email), 0, 8); diff --git a/apps/provisioning_api/lib/Middleware/Exceptions/NotSubAdminException.php b/apps/provisioning_api/lib/Middleware/Exceptions/NotSubAdminException.php index 6f5b15628f9..2b31e2f7d1b 100644 --- a/apps/provisioning_api/lib/Middleware/Exceptions/NotSubAdminException.php +++ b/apps/provisioning_api/lib/Middleware/Exceptions/NotSubAdminException.php @@ -27,6 +27,6 @@ use OCP\AppFramework\Http; class NotSubAdminException extends \Exception { public function __construct() { - parent::__construct('Logged in user must be at least a sub admin', Http::STATUS_FORBIDDEN); + parent::__construct('Logged in account must be at least a sub admin', Http::STATUS_FORBIDDEN); } } -- cgit v1.2.3