diff --git a/src/core/features/user/pages/profile/profile.html b/src/core/features/user/pages/profile/profile.html index c3c8192d3..b8be19e55 100644 --- a/src/core/features/user/pages/profile/profile.html +++ b/src/core/features/user/pages/profile/profile.html @@ -26,10 +26,6 @@ {{ 'core.user.roles' | translate}}{{'core.labelsep' | translate}} {{ rolesFormatted }}
-- {{ 'core.group' | translate}}{{'core.labelsep' | translate}} - {{ userGroups }} -
{{ 'core.lastaccess' | translate }}: {{ user.lastaccess | coreTimeAgo }} diff --git a/src/core/features/user/pages/profile/profile.ts b/src/core/features/user/pages/profile/profile.ts index 103306b53..dd299b24f 100644 --- a/src/core/features/user/pages/profile/profile.ts +++ b/src/core/features/user/pages/profile/profile.ts @@ -53,7 +53,6 @@ export class CoreUserProfilePage implements OnInit, OnDestroy { protected subscription?: Subscription; protected logView: (user: CoreUserProfile) => void; - userGroups?: string; userLoaded = false; isLoadingHandlers = false; user?: CoreUserProfile; @@ -133,11 +132,6 @@ export class CoreUserProfilePage implements OnInit, OnDestroy { try { await this.fetchUser(); - - if (this.courseId && this.user && 'groups' in this.user) { - const separator = Translate.instant('core.listsep'); - this.userGroups = this.user.groups?.map(group => group.name).join(separator + ' '); - } } finally { this.userLoaded = true; }