From 5f5fad86e9aadc0392d6de11873066b63906c1d6 Mon Sep 17 00:00:00 2001 From: Oleksandr Bohuslavskyi Date: Tue, 2 Jul 2024 15:31:29 -0500 Subject: [PATCH] Listing details case --- .../listing-details/listing-details.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/features/components/listings-table/listing-details/listing-details.component.ts b/frontend/src/app/features/components/listings-table/listing-details/listing-details.component.ts index ff2a24a2..8cc78040 100644 --- a/frontend/src/app/features/components/listings-table/listing-details/listing-details.component.ts +++ b/frontend/src/app/features/components/listings-table/listing-details/listing-details.component.ts @@ -12,6 +12,7 @@ import { UserDataService } from '../../../../common/services/user-data.service'; import { environment } from '../../../../../environments/environment'; import { SelectedListingsStateService } from '../../../../common/services/selected-listings-state.service'; import { GlobalLoaderService } from '../../../../common/services/global-loader.service'; +import { listing_read, takedown_action } from '../../../../common/consts/permissions.const'; @Component({ selector: 'app-listing-details', @@ -50,7 +51,7 @@ export class ListingDetailsComponent implements OnInit { this.userDataService.getCurrentUser().subscribe({ next: (user) => { - this.isCEU = user.permissions.includes('ceu_action'); + this.isCEU = !user.permissions.includes(takedown_action); }, complete: () => { this.loaderService.loadingEnd(); },