Skip to content

Commit

Permalink
Listing details case
Browse files Browse the repository at this point in the history
  • Loading branch information
OleksandrBohuslavskyi committed Jul 2, 2024
1 parent 09dba85 commit 5f5fad8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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();
},
Expand Down

0 comments on commit 5f5fad8

Please sign in to comment.