Disable stakeholder card if user has not permissionts. Fix a bug in search stakeholders when user is logged in
This commit is contained in:
parent
9c286c3451
commit
e83f5febf9
|
@ -228,7 +228,7 @@
|
|||
</div>
|
||||
</modal-alert>
|
||||
<ng-template #stakeholderCard let-stakeholder="stakeholder">
|
||||
<div class="uk-card uk-card-default uk-text-center">
|
||||
<div class="uk-card uk-card-default uk-text-center" [class.disabled]="!hasPermission(stakeholder)">
|
||||
<div *ngIf="stakeholder.visibility && stakeholder.visibility !== 'PUBLIC'"
|
||||
class="uk-position-top-right uk-margin-top uk-margin-right uk-flex uk-flex-middle">
|
||||
<icon [name]="visibilityIcon.get(stakeholder.visibility)"></icon>
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 0b3e699796585c12ed06744d69a0e95e7629aa63
|
||||
Subproject commit 5c7430ae7cde032c1b6b4d9bd990f761cd6b73e3
|
|
@ -8,7 +8,6 @@ import {AdvancedField, Filter, Value} from "../openaireLibrary/searchPages/searc
|
|||
import {SearchFields} from "../openaireLibrary/utils/properties/searchFields";
|
||||
import {Session, User} from "../openaireLibrary/login/utils/helper.class";
|
||||
import {StringUtils} from "../openaireLibrary/utils/string-utils.class";
|
||||
import {HelperFunctions} from "../openaireLibrary/utils/HelperFunctions.class";
|
||||
import {UserManagementService} from "../openaireLibrary/services/user-management.service";
|
||||
import {StakeholderService} from "../openaireLibrary/monitor/services/stakeholder.service";
|
||||
import {NewSearchPageComponent} from "../openaireLibrary/searchPages/searchUtils/newSearchPage.component";
|
||||
|
@ -435,9 +434,12 @@ export class SearchStakeholdersComponent {
|
|||
value_original_ids.push(["funder", "ri", "organization"]);
|
||||
filter_names.push("Accessibility");
|
||||
filter_ids.push("access");
|
||||
if(!this.user) {
|
||||
value_names.push(["Public", "Restricted"]);
|
||||
value_original_ids.push(["public", "restricted"]);
|
||||
if(this.user) {
|
||||
} else {
|
||||
value_names.push(["Public", "Restricted", "Private"]);
|
||||
value_original_ids.push(["public", "restricted", "private"]);
|
||||
filter_names.push("Role");
|
||||
filter_ids.push("role");
|
||||
value_names.push(["Manager", "Member"]);
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 363790356aeb20339fab6d36516864ab44931dd7
|
||||
Subproject commit 443ef4d544d370c698ed0856481b71e489a044d8
|
Loading…
Reference in New Issue