diff --git a/frontend/src/app/core/security/oauth2-management/authentication-settings.component.html b/frontend/src/app/core/security/oauth2-management/authentication-settings.component.html index 5c3ea7aa0..e00265134 100644 --- a/frontend/src/app/core/security/oauth2-management/authentication-settings.component.html +++ b/frontend/src/app/core/security/oauth2-management/authentication-settings.component.html @@ -583,7 +583,10 @@
{{ t('groupMapping.adminLabel') }}
- +
@@ -596,7 +599,12 @@ @for (perm of editingGroupMappingPerms; track perm) {
- +
} diff --git a/frontend/src/app/core/security/oauth2-management/authentication-settings.component.ts b/frontend/src/app/core/security/oauth2-management/authentication-settings.component.ts index 55cdcdaae..0ebdf49c0 100644 --- a/frontend/src/app/core/security/oauth2-management/authentication-settings.component.ts +++ b/frontend/src/app/core/security/oauth2-management/authentication-settings.component.ts @@ -437,6 +437,15 @@ export class AuthenticationSettingsComponent { }); } + onAdminCheckboxChange(): void { + if (this.editingGroupMapping.isAdmin) { + this.editingGroupMappingPerms = this.availablePermissions.map(p => ({ + ...p, + selected: true, + })); + } + } + private emptyGroupMapping(): OidcGroupMapping { return {oidcGroupClaim: '', isAdmin: false, permissions: [], libraryIds: [], description: ''}; }