Skip to content

Commit

Permalink
Merge pull request #363 from bcgov/hide-listings
Browse files Browse the repository at this point in the history
Hidden Listings link, commented the route
  • Loading branch information
ychung-mot authored Jun 4, 2024
2 parents 072d23e + da70c81 commit 3fb6910
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions frontend/src/app/app.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ export const routes: Routes = [
component: DelistingRequestComponent,
data: { permissions: [takedown_action] }
},
{
path: 'listings',
canActivate: [approvedUserGuard, activeUserGuard, hasPermissionsGuard, areTermsAceptedGuard],
component: ListingsTableComponent,
data: { permissions: [listing_read] }
},
// {
// path: 'listings',
// canActivate: [approvedUserGuard, activeUserGuard, hasPermissionsGuard, areTermsAceptedGuard],
// component: ListingsTableComponent,
// data: { permissions: [listing_read] }
// },
{
path: 'access-request',
canActivate: [accessRequestTokenGuard],
Expand Down
12 changes: 6 additions & 6 deletions frontend/src/app/common/layout/layout.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,12 @@ export class LayoutComponent {
return !!item.items?.length;
});

if (this.userDataService.currentUser.permissions.includes(listing_read)) {
this.items?.unshift({
label: 'Listings',
routerLink: '/listings',
});
}
// if (this.userDataService.currentUser.permissions.includes(listing_read)) {
// this.items?.unshift({
// label: 'Listings',
// routerLink: '/listings',
// });
// }

this.items?.unshift({
label: 'Home',
Expand Down

0 comments on commit 3fb6910

Please sign in to comment.