Skip to content

Commit 0f0c6c8

Browse files
committed
address review by @blizzz
Signed-off-by: szaimen <[email protected]>
1 parent 20e856e commit 0f0c6c8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

core/Notification/CoreNotifier.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ public function prepare(INotification $notification, string $languageCode): INot
8383
}
8484

8585
if ($notification->getSubject() === 'user_limit_reached') {
86-
$notification->setParsedSubject($l->t('Nextcloud Enterprise subscription needed for more users'));
87-
$notification->setParsedMessage($l->t('Enter your subscription key in the support app in order to increase the user limit. This will also grant you all additional benefits that Nextcloud Enterprise offers and is highly recommended for the operation in companies.'));
86+
$notification->setParsedSubject($l->t('The user limit has been reached and the user was not created.'));
87+
$notification->setParsedMessage($l->t('Enter your subscription key in the support app in order to increase the user limit. This does also grant you all additional benefits that Nextcloud Enterprise offers and is highly recommended for the operation in companies.'));
8888
$notification->setIcon($this->url->getAbsoluteURL($this->url->imagePath('core', 'places/contacts.svg')));
8989
$action = $notification->createAction();
9090
$label = $l->t('Learn more ↗');

lib/private/User/Manager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ public function createUser($uid, $password) {
397397
$notificationManager = \OC::$server->get(IManager::class);
398398
if ($registry->delegateIsHardUserLimitReached($notificationManager)) {
399399
$l = \OC::$server->getL10N('lib');
400-
throw new HintException($l->t('Nextcloud Enterprise subscription needed for more users. Check your notifications to learn more.'));
400+
throw new HintException($l->t('The user limit has been reached and the user was not created. Check your notifications to learn more.'));
401401
}
402402

403403
$localBackends = [];

0 commit comments

Comments
 (0)