mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 15:33:04 +00:00
Merge remote-tracking branch 'origin/main' into CST-5307
# Conflicts: # src/app/core/core.module.ts # src/app/profile-page/profile-page.component.spec.ts # src/app/profile-page/profile-page.component.ts # src/app/shared/shared.module.ts
This commit is contained in:
@@ -43,6 +43,11 @@ export class ProfilePageComponent implements OnInit {
|
||||
*/
|
||||
groupsRD$: Observable<RemoteData<PaginatedList<Group>>>;
|
||||
|
||||
/**
|
||||
* The special groups the user belongs to
|
||||
*/
|
||||
specialGroupsRD$: Observable<RemoteData<PaginatedList<Group>>>;
|
||||
|
||||
/**
|
||||
* Prefix for the notification messages of this component
|
||||
*/
|
||||
@@ -89,6 +94,7 @@ export class ProfilePageComponent implements OnInit {
|
||||
);
|
||||
this.groupsRD$ = this.user$.pipe(switchMap((user: EPerson) => user.groups));
|
||||
this.canChangePassword$ = this.user$.pipe(switchMap((user: EPerson) => this.authorizationService.isAuthorized(FeatureID.CanChangePassword, user._links.self.href)));
|
||||
this.specialGroupsRD$ = this.authService.getSpecialGroupsFromAuthStatus();
|
||||
|
||||
this.configurationService.findByPropertyName('researcher-profile.entity-type').pipe(
|
||||
getFirstCompletedRemoteData()
|
||||
|
Reference in New Issue
Block a user