Fix: Wrong permission of sales

This commit is contained in:
Amritanshu 2019-08-21 15:40:46 +05:30
parent 2c0c91b136
commit 461db9d8fa

View File

@ -40,7 +40,7 @@ const routes: Routes = [
canActivate: [AuthGuard], canActivate: [AuthGuard],
// canDeactivate: [CanDeactivateGuard], // canDeactivate: [CanDeactivateGuard],
data: { data: {
permission: 'Guest Book' permission: 'Sales'
}, },
resolve: { resolve: {
item: BillResolver item: BillResolver
@ -51,7 +51,7 @@ const routes: Routes = [
component: SalesHomeComponent, component: SalesHomeComponent,
canActivate: [AuthGuard], canActivate: [AuthGuard],
data: { data: {
permission: 'Guest Book' permission: 'Sales'
}, },
resolve: { resolve: {
list: MenuCategoriesResolver list: MenuCategoriesResolver
@ -62,7 +62,7 @@ const routes: Routes = [
component: MenuCategoriesComponent, component: MenuCategoriesComponent,
canActivate: [AuthGuard], canActivate: [AuthGuard],
data: { data: {
permission: 'Guest Book' permission: 'Sales'
}, },
resolve: { resolve: {
list: MenuCategoriesResolver list: MenuCategoriesResolver
@ -73,7 +73,7 @@ const routes: Routes = [
component: ProductsComponent, component: ProductsComponent,
canActivate: [AuthGuard], canActivate: [AuthGuard],
data: { data: {
permission: 'Guest Book' permission: 'Sales'
}, },
resolve: { resolve: {
list: ProductsResolver list: ProductsResolver