Fix: Permissions for header-footer.

The persission Owner is only for Settle Option and Header / Footer
This commit is contained in:
2020-12-13 13:19:42 +05:30
parent 3ad73dff1c
commit afc58d566c
3 changed files with 5 additions and 5 deletions

View File

@ -13,7 +13,7 @@ const headerRoutes: Routes = [
component: HeaderFooterComponent,
canActivate: [AuthGuard],
data: {
permission: 'Products',
permission: 'Owner',
},
resolve: {
list: HeaderFooterResolver,
@ -24,7 +24,7 @@ const headerRoutes: Routes = [
component: HeaderFooterComponent,
canActivate: [AuthGuard],
data: {
permission: 'Products',
permission: 'Owner',
},
resolve: {
list: HeaderFooterResolver,

View File

@ -227,7 +227,7 @@
fxLayout="column"
class="square-button"
matRipple
*ngIf="auth.allowed('products')"
*ngIf="auth.allowed('owner')"
[routerLink]="['/', 'header-footer']"
>
<h3 class="item-name">Header / Footer</h3>