Open
Description
I'm submitting a...
[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report
[x ] Feature request
[ ] Documentation issue or request
Current behavior
Redirection rule can only fire when user has no permission
Expected behavior
There should be the way to make this works like intended - redirect admin's to admin route and etc.
{
path: '',
component: ɵEmptyOutletComponent,
canActivate: [NgxPermissionsGuard],
data: {
permissions: {
only: [UserRoles.ADMIN,UserRoles.DOCTOR],
redirectTo: {
[UserRoles.ADMIN]: 'admin',
[UserRoles.DOCTOR]: 'doctor',
default: 'login'
}
}
}
},
Metadata
Metadata
Assignees
Labels
No labels