Merge pull request #51816 from nextcloud/rakekniven-patch-1

chore(i18n): Aligned spelling of "sub admin"
This commit is contained in:
rakekniven 2025-03-31 17:54:26 +02:00 committed by GitHub
commit e3e7df6bf8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 8 additions and 8 deletions

View file

@ -50,7 +50,7 @@ class SubadminMiddleware extends Middleware {
public function beforeController($controller, $methodName) {
if (!$this->reflector->hasAnnotation('NoSubAdminRequired') && !$this->reflector->hasAnnotation('AuthorizedAdminSetting')) {
if (!$this->isSubAdmin()) {
throw new NotAdminException($this->l10n->t('Logged in account must be a subadmin'));
throw new NotAdminException($this->l10n->t('Logged in account must be a sub admin'));
}
}
}

View file

@ -574,7 +574,7 @@ export default {
const groups = await loadUserSubAdminGroups({ userId: this.user.id })
this.availableSubAdminGroups = this.availableSubAdminGroups.map(availableGroup => groups.find(group => group.id === availableGroup.id) ?? availableGroup)
} catch (error) {
logger.error(t('settings', 'Failed to load subadmin groups with details'), { error })
logger.error(t('settings', 'Failed to load sub admin groups with details'), { error })
}
this.loading.subadmins = false
this.loading.subAdminGroupsDetails = false

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long